12 references to CompareExceptions
Microsoft.Build.Engine.UnitTests (12)
BackEnd\BinaryTranslator_Tests.cs (5)
193Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason), diffReason); 215Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason), diffReason); 244Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason), diffReason); 283Assert.True(TranslationHelpers.CompareExceptions(remote, deserializedValue, out string diffReason, true), $"Exception type {exceptionType.FullName} not properly de/serialized: {diffReason}"); 304Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason, true), diffReason);
BackEnd\BuildResult_Tests.cs (3)
334Assert.True(TranslationHelpers.CompareExceptions(result.Exception, deserializedResult.Exception, out string diffReason), diffReason); 340Assert.True(TranslationHelpers.CompareExceptions(result["alpha"].Exception, deserializedResult["alpha"].Exception, out diffReason), diffReason); 343Assert.True(TranslationHelpers.CompareExceptions(result["omega"].Exception, deserializedResult["omega"].Exception, out diffReason), diffReason);
BackEnd\TargetResult_Tests.cs (2)
105Assert.True(TranslationHelpers.CompareExceptions(result.Exception, deserializedResult.Exception, out string diffReason), diffReason); 125Assert.True(TranslationHelpers.CompareExceptions(result.Exception, deserializedResult.Exception, out string diffReason), diffReason);
BackEnd\TranslationHelpers.cs (1)
115if (!CompareExceptions(left.InnerException, right.InnerException, out diffReason, detailed))
InternalEngineHelpers.cs (1)
178TranslationHelpers.CompareExceptions(a.Exception, b.Exception, out string diffReason).ShouldBeTrue(diffReason);