public void TestCallAFterException() { var a = new NUnitReporter(); var b = new RecordingReporter(); var multi = new MultiReporter(a, b); var exception = ExceptionUtilities.GetException(() => multi.Report("a", "r")); Assert.AreEqual("a,r", b.CalledWith); Assert.IsInstanceOf<Exception>(exception); }
public void Report(string approved, string received) { string assertClass = " Microsoft.VisualStudio.TestTools.UnitTesting.Assert, Microsoft.VisualStudio.QualityTools.UnitTestFramework"; NUnitReporter.AssertFileContents(approved, received, assertClass); }