System.Reflection.Tests.PropertyInfoTests.GetMethod_SetMethod C# (CSharp) Метод

GetMethod_SetMethod() приватный Метод

private GetMethod_SetMethod ( Type type, string name, bool hasGetter, bool hasSetter ) : void
type Type
name string
hasGetter bool
hasSetter bool
Результат void
        public void GetMethod_SetMethod(Type type, string name, bool hasGetter, bool hasSetter)
        {
            PropertyInfo propertyInfo = GetProperty(type, name);
            Assert.Equal(hasGetter, propertyInfo.GetMethod != null);
            Assert.Equal(hasSetter, propertyInfo.SetMethod != null);
        }