public void CompareToThrowsOnNull() { AreaMomentOfInertia metertothefourth = AreaMomentOfInertia.FromMetersToTheFourth(1); Assert.Throws <ArgumentNullException>(() => metertothefourth.CompareTo(null)); }
public void CompareToThrowsOnTypeMismatch() { AreaMomentOfInertia metertothefourth = AreaMomentOfInertia.FromMetersToTheFourth(1); Assert.Throws <ArgumentException>(() => metertothefourth.CompareTo(new object())); }