Exemplo n.º 1
0
        public void EqualsIsImplemented()
        {
            ElectricField v = ElectricField.FromVoltsPerMeter(1);

            Assert.True(v.Equals(ElectricField.FromVoltsPerMeter(1), ElectricField.FromVoltsPerMeter(VoltsPerMeterTolerance)));
            Assert.False(v.Equals(ElectricField.Zero, ElectricField.FromVoltsPerMeter(VoltsPerMeterTolerance)));
        }
Exemplo n.º 2
0
        public void EqualsReturnsFalseOnNull()
        {
            ElectricField voltpermeter = ElectricField.FromVoltsPerMeter(1);

            Assert.False(voltpermeter.Equals(null));
        }
Exemplo n.º 3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            ElectricField voltpermeter = ElectricField.FromVoltsPerMeter(1);

            Assert.False(voltpermeter.Equals(new object()));
        }