test/Shared/FunctionalTests/MetaTests.cs
/// <summary>
/// Checks base types of the given types for TestBase
/// </summary>
/// <param name="type"> Type to be checked. </param>
/// <returns> True if the type implements TestBase, false otherwise. </returns>
Checks base types of the given types for TestBase
Checks base types of the given types for TestBase
private bool DoesTypeImplementTestBase(Type type)
        {           
            var baseType = type.BaseType();
            while (baseType != null)
            {
                if (baseType.Name == "TestBase")
                {
                    return true;
                }
                baseType = baseType.BaseType();
            }            
            return false;
        }
private bool DoesTypeImplementTestBase ( Type type ) { var baseType = type . BaseType ( ) ; while ( baseType != null ) { if ( baseType . Name == " " ) { return true ; } baseType = baseType . BaseType ( ) ; } return false ; }
Checks base types of the given types for TestBase
Checks base types of the given types for TestBase
True if the type implements TestBase, false otherwise.
True if the type implements TestBase false otherwise .
type
Type
Type to be checked.
Type to be checked .