Exemplo n.º 1
0
            public void ReturnsAllStaticFieldsInheritedByGivenType()
            {
                var sut = new StaticMembers(typeof(TwiceDerivedType));

                IEnumerable <Field> fields = sut.Fields();

                VerifyFieldsOfTestType(fields);
            }
Exemplo n.º 2
0
            public void ReturnsAllStaticMethodsInheritedByGivenType()
            {
                var sut = new StaticMembers(typeof(TwiceDerivedType));

                IEnumerable <Method> methods = sut.Methods();

                VerifyMethodsOfTestType(methods);
            }
Exemplo n.º 3
0
            public void PassesTypeToBase()
            {
                Type type = typeof(TestType);

                TypeMembers sut = new StaticMembers(type);

                Assert.Same(type, sut.Type);
                Assert.Null(sut.Instance);
            }