public void EqualsIsImplemented()
        {
            HeatFlux v = HeatFlux.FromWattsPerSquareMeter(1);

            Assert.True(v.Equals(HeatFlux.FromWattsPerSquareMeter(1), HeatFlux.FromWattsPerSquareMeter(WattsPerSquareMeterTolerance)));
            Assert.False(v.Equals(HeatFlux.Zero, HeatFlux.FromWattsPerSquareMeter(WattsPerSquareMeterTolerance)));
        }
Example #2
0
        public void EqualsReturnsFalseOnNull()
        {
            HeatFlux wattpersquaremeter = HeatFlux.FromWattsPerSquareMeter(1);

            Assert.False(wattpersquaremeter.Equals(null));
        }
Example #3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            HeatFlux wattpersquaremeter = HeatFlux.FromWattsPerSquareMeter(1);

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