public void CompareToThrowsOnTypeMismatch() { ReactivePower voltamperereactive = ReactivePower.FromVoltamperesReactive(1); Assert.Throws <ArgumentException>(() => voltamperereactive.CompareTo(new object())); }
public void CompareToThrowsOnNull() { ReactivePower voltamperereactive = ReactivePower.FromVoltamperesReactive(1); Assert.Throws <ArgumentNullException>(() => voltamperereactive.CompareTo(null)); }