public void GetHashCode_should_return_value_for_class_with_generic_property2() { var first = new ClassWithGenericProperty(); first.Prop = new GenericDependency <int> { Prop = 1 }; var result = first.GetHashCode(); Assert.NotEqual(0, result); }
public void Equals_should_return_for_class_with_generic_property() { var first = new ClassWithGenericProperty(); first.Prop = new GenericDependency <int> { Prop = 1 }; var second = new ClassWithGenericProperty(); second.Prop = new GenericDependency <int> { Prop = 1 }; var result = first.Equals(second); Assert.True(result); }