NUnit.Framework.Internal.TestSuite.Add C# (CSharp) Méthode

Add() public méthode

Adds a test to the suite.
public Add ( Test test ) : void
test Test The test.
Résultat void
        public void Add(Test test)
        {
            test.Parent = this;
            tests.Add(test);
        }

Usage Example

        public void FixtureDescription()
        {
            TestSuite suite = new TestSuite("suite");
            suite.Add( TestBuilder.MakeFixture( typeof( DescriptionFixture ) ) );

            TestSuite mockFixtureSuite = (TestSuite)suite.Tests[0];

            Assert.AreEqual("Fixture Description", mockFixtureSuite.Properties.Get(PropertyNames.Description));
        }
All Usage Examples Of NUnit.Framework.Internal.TestSuite::Add