public static void EqualsT_GivenNullIAutoIncrement_ReturnsFalse() { const int initialValue = 12345; const int increment = 9876; var a = new AutoIncrement(initialValue, increment); Assert.That(a.Equals(null), Is.False); }
public static void Equals_GivenObjectsWithDifferentInitialValue_ReturnsFalse() { const int initialValue = 12345; const int increment = 9876; var a = new AutoIncrement(initialValue, increment); object b = new AutoIncrement(54321, increment); Assert.That(a.Equals(b), Is.False); }
public static void Equals_GivenObjectsWithEqualInputs_ReturnsTrue() { const int initialValue = 12345; const int increment = 9876; var a = new AutoIncrement(initialValue, increment); object b = new AutoIncrement(initialValue, increment); Assert.That(a.Equals(b), Is.True); }
public static void Equals_GivenNonAutoIncrementObject_ReturnsFalse() { const int initialValue = 12345; const int increment = 9876; var a = new AutoIncrement(initialValue, increment); var b = new object(); Assert.That(a.Equals(b), Is.False); }