public void EqualsSameObjectTest() { var token = new NumberToken(1.1); Assert.True(token.Equals(token)); Assert.Equal(token, token); }
public void EqualsNullTest() { var token = new NumberToken(1.1); Assert.False(token.Equals(null)); Assert.NotEqual(null, token); }
public void EqualsDiffTypeTest() { var token = new NumberToken(1.1); Assert.False(token.Equals(1)); Assert.NotEqual((object)1, token); }
public void EqualsDiffVarTest() { var token1 = new NumberToken(1.1); var token2 = new NumberToken(1.14); Assert.False(token1.Equals(token2)); Assert.NotEqual(token1, token2); }