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

Equals() private method

private Equals ( Type type1, string name1, Type type2, string name2, bool expected ) : void
type1 Type
name1 string
type2 Type
name2 string
expected bool
return void
        public void Equals(Type type1, string name1, Type type2, string name2, bool expected)
        {
            PropertyInfo propertyInfo1 = GetProperty(type1, name1);
            PropertyInfo propertyInfo2 = GetProperty(type2, name2);
            Assert.Equal(expected, propertyInfo1.Equals(propertyInfo2));
        }