public void TestDetailOneGroupSupported()
        {
            //SETUP
            MasterEnvironment.ResetLogging();
            var classLog = new ClassLog(@"TestGroup01UnitTestGroup\Test01MyUnitTest");

            MasterEnvironment.AddClassLog(classLog);
            example2Supported.ForEach(classLog.MethodLogs.Add);

            //ATTEMPT
            var markup = MasterEnvironment.ResultsAsMarkup(OutputVersions.Detail);

            //VERIFY
            markup.ShouldStartWith("Detail");
            markup.ShouldContain("Group: Unit Test Group");
            markup.ShouldContain("\n#### [My Unit Test](");
            markup.ShouldContain("\n- Supported\n  * Good1 (line 1)\n  * Good2 (line 2)");
        }
        public void TestDetailWithSqlOneGroupPartiallySupported()
        {
            //SETUP
            MasterEnvironment.ResetLogging();
            var classLog = new ClassLog(@"TestGroup01UnitTestGroup\Test01MyUnitTest");

            MasterEnvironment.AddClassLog(classLog);
            example1PartiallySupported.ForEach(classLog.MethodLogs.Add);

            //ATTEMPT
            var markup = MasterEnvironment.ResultsAsMarkup(OutputVersions.DetailWithSql);

            //VERIFY
            markup.ShouldStartWith("Detail With Sql");
            markup.ShouldContain("Group: Unit Test Group");
            markup.ShouldContain("\n#### [My Unit Test](");
            markup.ShouldContain("\n- Supported\n  * Good (line 1)\n     * T-Sql executed is\n\n```SQL");
            markup.ShouldContain("\n- **Not Supported**\n  * Bad (line 2)");
        }
Exemplo n.º 3
0
        public void TestSummaryOneGroupNotSupported()
        {
            //SETUP
            MasterEnvironment.ResetLogging();
            var classLog = new ClassLog(@"TestGroup01UnitTestGroup\Test01MyUnitTest");

            MasterEnvironment.AddClassLog(classLog);
            example3NotSupported.ForEach(classLog.MethodLogs.Add);

            //ATTEMPT
            var markup = MasterEnvironment.ResultsAsMarkup(OutputVersions.Summary);

            //VERIFY
            markup.ShouldStartWith("Summary");
            markup.ShouldContain("Group: Unit Test Group");
            markup.ShouldContain("\n- **Not Supported**\n");
            markup.ShouldContain(
                "\n  * [My Unit Test](../TestGroup01UnitTestGroup/Test01MyUnitTest) (2 tests)");
        }
Exemplo n.º 4
0
        public void TestSummaryTwoGroupOneClassEachSupported()
        {
            //SETUP
            MasterEnvironment.ResetLogging();
            var classLog1 = new ClassLog(@"TestGroup01UnitTestGroup1\Test01MyUnitTest1");

            MasterEnvironment.AddClassLog(classLog1);
            example2Supported.ForEach(classLog1.MethodLogs.Add);
            var classLog2 = new ClassLog(@"TestGroup01UnitTestGroup2\Test01MyUnitTest2");

            MasterEnvironment.AddClassLog(classLog2);
            example2Supported.ForEach(classLog2.MethodLogs.Add);

            //ATTEMPT
            var markup = MasterEnvironment.ResultsAsMarkup(OutputVersions.Summary);

            //VERIFY
            markup.ShouldStartWith("Summary");
            markup.ShouldContain("Group: Unit Test Group1");
            markup.ShouldContain("Group: Unit Test Group2");
            markup.ShouldContain("\n  * [My Unit Test1]");
            markup.ShouldContain("\n  * [My Unit Test2](");
        }