コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }