/// <summary>
        /// Locates the test suite with the provided fully qualified name
        /// </summary>
        /// <param name="framework">The framework from which to locate the test suite</param>
        /// <param name="fullyQualifiedName">The test suite's fully qualified name</param>
        /// <returns>The test suite which was located or null if it was not found</returns>
        private static TestSuite LocateSuite(TestFramework framework, string fullyQualifiedName)
        {
            var suite = BoostTestLocator.Locate(framework, fullyQualifiedName);

            Assert.That(suite, Is.Not.Null);
            Assert.That(suite, Is.TypeOf <TestSuite>());

            return((TestSuite)suite);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Looks up a test unit by fully qualified name
 /// </summary>
 /// <param name="root">The root test unit from which to start searching</param>
 /// <param name="fullyQualifiedName">The fully qualified name of the test unit to look for</param>
 /// <returns>The test unit with the requested fully qualified name or null if it cannot be found</returns>
 private TestUnit Lookup(TestUnit root, string fullyQualifiedName)
 {
     return(BoostTestLocator.Locate(root, fullyQualifiedName));
 }
        /// <summary>
        /// Locates the test case with the provided fully qualified name from the provided framework
        /// </summary>
        /// <param name="framework">The framework to locate the test case from</param>
        /// <param name="fullyQualifiedName">The test case fully qualified name to locate</param>
        /// <returns>The located TestCase instance or null if it is not found</returns>
        private static BoostTestCase LocateTestCase(TestFramework framework, string fullyQualifiedName)
        {
            var unit = BoostTestLocator.Locate(framework, fullyQualifiedName);

            return(unit as BoostTestCase);
        }