public void CompareToIsImplemented()
        {
            RelativeHumidity percent = RelativeHumidity.FromPercent(1);

            Assert.Equal(0, percent.CompareTo(percent));
            Assert.True(percent.CompareTo(RelativeHumidity.Zero) > 0);
            Assert.True(RelativeHumidity.Zero.CompareTo(percent) < 0);
        }
        public void CompareToThrowsOnNull()
        {
            RelativeHumidity percent = RelativeHumidity.FromPercent(1);

            Assert.Throws <ArgumentNullException>(() => percent.CompareTo(null));
        }
        public void CompareToThrowsOnTypeMismatch()
        {
            RelativeHumidity percent = RelativeHumidity.FromPercent(1);

            Assert.Throws <ArgumentException>(() => percent.CompareTo(new object()));
        }