public void TestPropertyStaticDeclaredOnly() { Flags flags = Flags.StaticAnyVisibility | Flags.DeclaredOnly; AnimalStaticPropertyNames.Select(s => typeof(Animal).Property(s, flags)).ForEach(Assert.IsNotNull); AnimalStaticPropertyNames.Select(s => typeof(Lion).Property(s, flags)).ForEach(Assert.IsNull); }
public void TestPropertyStatic() { Flags flags = Flags.StaticAnyVisibility; AnimalInstancePropertyNames.Select(s => typeof(Animal).Property(s, flags)).ForEach(Assert.Null); AnimalStaticPropertyNames.Select(s => typeof(Animal).Property(s, flags)).ForEach(Assert.NotNull); AnimalStaticPropertyNames.Select(s => typeof(Lion).Property(s, flags)).ForEach(Assert.NotNull); }