public void EqualsTest() { NuGenPositiveInt32 compared = new NuGenPositiveInt32(); compared.Value = 20; _int.Value = 20; Assert.IsTrue(_int.Equals(compared)); _int.Value = 30; Assert.IsFalse(_int.Equals(compared)); Assert.IsFalse(_int.Equals(null)); }
public void EqualsTest() { _eventSink.ExpectedValueChangedCount = 2; NuGenPositiveInt32 compared = new NuGenPositiveInt32(); compared.Value = 20; _int.Value = 20; Assert.IsTrue(_int.Equals(compared)); _int.Value = 30; Assert.IsFalse(_int.Equals(compared)); Assert.IsFalse(_int.Equals(null)); }