Esempio n. 1
0
 public TestInstrumentationBase(int port)
 {
     _tester = new InstrumenterTester()
     {
         PortNumber = port
     };
     _tester.InstrumentSampleProject();
 }
Esempio n. 2
0
        static void Main()
        {
            var tester = new InstrumenterTester();

            tester.InstrumentSampleProject();
            tester.RunApp();
            tester.RunIsPrimeInApp(7);
            var result = tester.GetCoverageResult();

            Console.WriteLine($"Visited {result.GetVisitedSources().Count()} source files" +
                              $" and {result.GetVisitedMethods().Count()} methods.");
        }