public void TokenEquality_SameValueAsObject() { TSQLKeyword token1 = new TSQLKeyword(0, "GO"); Object token2 = new TSQLKeyword(0, "GO"); Assert.IsTrue(token1.Equals(token2)); }
public void TokenEquality_NotEqualOperatorNull() { TSQLKeyword token = new TSQLKeyword(0, "GO"); Assert.IsTrue(null != token); }
public void TokenEquality_SameToken() { TSQLKeyword token = new TSQLKeyword(0, "GO"); Assert.IsTrue(token.Equals(token)); }
public void TokenEquality_NotEqualOperator() { TSQLKeyword token1 = new TSQLKeyword(0, "GO"); TSQLKeyword token2 = new TSQLKeyword(0, "USE"); Assert.IsTrue(token1 != token2); }
public void TokenEquality_EqualsOperatorNull() { TSQLKeyword token = new TSQLKeyword(0, "GO"); Assert.IsFalse(null == token); }
public void TokenEquality_EqualsOperator() { TSQLKeyword token1 = new TSQLKeyword(0, "GO"); TSQLKeyword token2 = new TSQLKeyword(0, "GO"); Assert.IsTrue(token1 == token2); }
public void KeywordToken_NoneKeyword() { TSQLKeyword token = new TSQLKeyword(0, "blah"); Assert.AreEqual(TSQLKeywords.None, token.Keyword); }
public void KeywordToken_Keyword() { TSQLKeyword token = new TSQLKeyword(0, "go"); Assert.AreEqual(TSQLKeywords.GO, token.Keyword); }