public void ReturnsAllStaticFieldsInheritedByGivenType() { var sut = new StaticMembers(typeof(TwiceDerivedType)); IEnumerable <Field> fields = sut.Fields(); VerifyFieldsOfTestType(fields); }
public void ReturnsAllStaticMethodsInheritedByGivenType() { var sut = new StaticMembers(typeof(TwiceDerivedType)); IEnumerable <Method> methods = sut.Methods(); VerifyMethodsOfTestType(methods); }
public void PassesTypeToBase() { Type type = typeof(TestType); TypeMembers sut = new StaticMembers(type); Assert.Same(type, sut.Type); Assert.Null(sut.Instance); }