public void ShouldEqualForLong(long obj) { BigFloat big = (BigFloat)obj; Assert.True(BigFloat.Equals(big, obj)); Assert.True(BigFloat.Equals(obj, big)); }
public void ShouldEqualForDouble(double obj) { BigFloat big = (BigFloat)obj; Assert.True(BigFloat.Equals(big, obj)); Assert.True(BigFloat.Equals(obj, big)); }
public void ShouldEqualForBigInteger( string str) { BigInteger bigInt = BigInteger.Parse(str); BigFloat bigFloat = new BigFloat(str); Assert.True(BigFloat.Equals(bigFloat, bigInt)); Assert.True(BigFloat.Equals(bigInt, bigFloat)); }
protected override bool Equal( BigFloat left, BigFloat right) { return(left.Equals(right)); }