예제 #1
0
        public void TypesThat_HaveProperty_Generic_With_Name()
        {
            var testFunc = (Func <Type, bool>)TypesThat.HaveProperty <int>("PropertyA");

            Assert.True(testFunc(typeof(PropertyClass)));
        }
예제 #2
0
        public void TypesThat_HaveProperty()
        {
            var testFunc = (Func <Type, bool>)TypesThat.HaveProperty("PropertyA");

            Assert.True(testFunc(typeof(PropertyClass)));
        }