public void EqualsIsImplemented() { BitRate v = BitRate.FromBitsPerSecond(1); Assert.True(v.Equals(BitRate.FromBitsPerSecond(1), BitRate.FromBitsPerSecond(BitsPerSecondTolerance))); Assert.False(v.Equals(BitRate.Zero, BitRate.FromBitsPerSecond(BitsPerSecondTolerance))); }
public void EqualsReturnsFalseOnNull() { BitRate bitpersecond = BitRate.FromBitsPerSecond(1); Assert.False(bitpersecond.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { BitRate bitpersecond = BitRate.FromBitsPerSecond(1); Assert.False(bitpersecond.Equals(new object())); }