public void CompareToIsImplemented()
 {
     ElectricConductivity siemenspermeter = ElectricConductivity.FromSiemensPerMeter(1);
     Assert.Equal(0, siemenspermeter.CompareTo(siemenspermeter));
     Assert.True(siemenspermeter.CompareTo(ElectricConductivity.Zero) > 0);
     Assert.True(ElectricConductivity.Zero.CompareTo(siemenspermeter) < 0);
 }
        public void CompareToThrowsOnNull()
        {
            ElectricConductivity siemenspermeter = ElectricConductivity.FromSiemensPerMeter(1);

            Assert.Throws <ArgumentNullException>(() => siemenspermeter.CompareTo(null));
        }
        public void CompareToThrowsOnTypeMismatch()
        {
            ElectricConductivity siemenspermeter = ElectricConductivity.FromSiemensPerMeter(1);

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