public void TestSingletonOnAllReporters()
        {
            var reporters = GetSingletonReporterTypes();

            foreach (var r in reporters)
            {
                Assert.IsInstanceOf(r, UseReporterAttribute.GetSingleton(r));
            }
        }
示例#2
0
        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}();");
            }
        }
示例#3
0
 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}();");
         }
     }
 }