public void EqualsIsImplemented() { ReactivePower v = ReactivePower.FromVoltamperesReactive(1); Assert.True(v.Equals(ReactivePower.FromVoltamperesReactive(1))); Assert.False(v.Equals(ReactivePower.Zero)); }
public void EqualsReturnsFalseOnNull() { ReactivePower voltamperereactive = ReactivePower.FromVoltamperesReactive(1); Assert.False(voltamperereactive.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { ReactivePower voltamperereactive = ReactivePower.FromVoltamperesReactive(1); Assert.False(voltamperereactive.Equals(new object())); }