public void GetHashCode_should_return_value_for_class_with_static_properties() { var first = new ClassWithStaticProperties(); first.X = 1; first.Y = "2"; var result = first.GetHashCode(); Assert.NotEqual(0, result); }
public void Equals_should_return_true_for_class_with_static_properties() { var first = new ClassWithStaticProperties(); first.X = 1; first.Y = "2"; var second = new ClassWithStaticProperties(); second.X = 1; second.Y = "2"; var result = first.Equals(second); Assert.True(result); }