System.Reflection.Tests.PropertyInfoTests.GetMethod_SetMethod C# (CSharp) Method

GetMethod_SetMethod() private method

private GetMethod_SetMethod ( Type type, string name, bool hasGetter, bool hasSetter ) : void
type Type
name string
hasGetter bool
hasSetter bool
return 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);
        }