public void ShouldConsiderComformingManyFieldsObjectsEqual() { var first = new ManyFields(1, 2.0, "dummy", true); var second = new ManyFields(1, 2.0, "dummy", true); Assert.That(first.Equals(second), Is.True); }
public void ShouldConsiderDifferingManyFieldsObjectsNotEqual(int integer, double value, string text, bool truth) { var first = new ManyFields(1, 2.0, "dummy", true); var second = new ManyFields(integer, value, text, truth); Assert.That(first.Equals(second), Is.False); }