public void TestSingletonOnAllReporters() { var reporters = GetSingletonReporterTypes(); foreach (var r in reporters) { Assert.IsInstanceOf(r, UseReporterAttribute.GetSingleton(r)); } }
public void TestSingletonOnAllReporters() { var reporters = GetSingletonReporterTypes(); foreach (var r in reporters) { Assert.IsInstanceOf(r, UseReporterAttribute.GetSingleton(r), $"Please add\npublic static readonly {r.FullName} INSTANCE = new {r.FullName}();"); } }
public void TestSingletonOnAllReporters() { using (Approvals.SetFrontLoadedReporter(ReportWithoutFrontLoading.INSTANCE)) { var reporters = GetSingletonReporterTypes(); foreach (var r in reporters) { Assert.IsInstanceOf(r, UseReporterAttribute.GetSingleton(r), $"Please add\npublic static readonly {r.FullName} INSTANCE = new {r.FullName}();"); } } }