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