Exemple #1
0
            public When_performing_coverage_analysis()
            {
                spyOutputWriter = new SpyOutputWriter();
                var listener = new VerboseEventListener(spyOutputWriter);

                listener.BeginCoverageAnalysisOfTestCase("Tests.TestA", 0, 3);
                listener.BeginCoverageAnalysisOfTestCase("Tests.TestB", 1, 3);
                listener.BeginCoverageAnalysisOfTestCase("Tests.TestC", 2, 3);

                listener.MemberCoveredByTests("example.methodA");
                listener.MemberCoveredByTests("example.methodA");
            }
Exemple #2
0
            public When_performing_coverage_analysis()
            {
                spyOutputWriter = new SpyOutputWriter();
                var listener = new VerboseEventListener(spyOutputWriter);

                for (var testIndex = 0; testIndex < 15; ++testIndex)
                {
                    listener.BeginCoverageAnalysisOfTestCase($"Tests.Test{testIndex}", testIndex, 15);
                }
            }