public void GetHashCode_should_return_value_class_with_generic_base() { var instance = new ClassWithGenericBase(); instance.Prop = 1; var result = instance.GetHashCode(); Assert.NotEqual(0, result); }
public void Equals_should_return_value_class_with_generic_base() { var first = new ClassWithGenericBase(); first.Prop = 1; var second = new ClassWithGenericBase(); second.Prop = 1; var result = first.Equals(second); Assert.True(result); }