コード例 #1
0
        public void FixtureDescriptionInResult()
        {
            TestSuite suite = new TestSuite("Mock Fixture");
            suite.Add( TestBuilder.MakeFixture( typeof( MockFixture ) ) );
            TestResult result = suite.Run(NullListener.NULL);

            DescriptionVisitor visitor = new DescriptionVisitor("MockFixture", "Fixture Description");
            result.Accept(visitor);
        }
コード例 #2
0
        public void SeparateDescriptionInResult()
        {
            TestSuite suite = new TestSuite("Mock Fixture");

            suite.Add(TestBuilder.MakeFixture(typeof(MockFixture)));
            TestResult result = suite.Run(NullListener.NULL);

            DescriptionVisitor visitor = new DescriptionVisitor("NUnit.Tests.Attributes.MockFixture.SeparateDescriptionMethod", "Separate Description");

            result.Accept(visitor);
        }
コード例 #3
0
        public void FixtureDescriptionInResult()
        {
            TestSuite suite = new TestSuite("Mock Fixture");

            suite.Add(TestBuilder.MakeFixture(typeof(MockFixture)));
            TestResult result = suite.Run(NullListener.NULL);

            DescriptionVisitor visitor = new DescriptionVisitor("MockFixture", "Fixture Description");

            result.Accept(visitor);
        }
コード例 #4
0
        public void DescriptionInResult()
        {
            TestSuite suite = new TestSuite("Mock Fixture");
            suite.Add(TestBuilder.MakeFixture(typeof(MockFixture)));
            TestResult result = suite.Run(NullListener.NULL);

            DescriptionVisitor visitor = new DescriptionVisitor("NUnit.Tests.Attributes.MockFixture.Method", "Test Description");
            result.Accept(visitor);

            visitor =
                new DescriptionVisitor("NUnit.Tests.Attributes.MockFixture.NoDescriptionMethod", null);
            result.Accept(visitor);
        }