public virtual void TestIsReplace() { NUnit.Framework.Assert.AreEqual(ServerParse.Replace, ServerParse.Parse("replace ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Replace, ServerParse.Parse("REPLACE ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Replace, ServerParse.Parse("rEPLACe ..." )); }
public virtual void TestIsRollback() { NUnit.Framework.Assert.AreEqual(ServerParse.Rollback, ServerParse.Parse("rollback" )); NUnit.Framework.Assert.AreEqual(ServerParse.Rollback, ServerParse.Parse("ROLLBACK" )); NUnit.Framework.Assert.AreEqual(ServerParse.Rollback, ServerParse.Parse("rolLBACK " )); }
public virtual void TestIsDelete() { NUnit.Framework.Assert.AreEqual(ServerParse.Delete, ServerParse.Parse("delete ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Delete, ServerParse.Parse("DELETE ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Delete, ServerParse.Parse("DeletE ..." )); }
public virtual void TestIsInsert() { NUnit.Framework.Assert.AreEqual(ServerParse.Insert, ServerParse.Parse("insert ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Insert, ServerParse.Parse("INSERT ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Insert, ServerParse.Parse("InserT ..." )); }
public virtual void TestIsUpdate() { NUnit.Framework.Assert.AreEqual(ServerParse.Update, ServerParse.Parse("update ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Update, ServerParse.Parse("UPDATE ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Update, ServerParse.Parse("UPDate ..." )); }
public virtual void TestIsSavepoint() { NUnit.Framework.Assert.AreEqual(ServerParse.Savepoint, ServerParse.Parse(" savepoint ..." )); NUnit.Framework.Assert.AreEqual(ServerParse.Savepoint, ServerParse.Parse("SAVEPOINT " )); NUnit.Framework.Assert.AreEqual(ServerParse.Savepoint, ServerParse.Parse(" SAVEpoint a" )); }
public virtual void TestIsSet() { NUnit.Framework.Assert.AreEqual(ServerParse.Set, unchecked ((int)(0xff)) & ServerParse .Parse("set ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Set, unchecked ((int)(0xff)) & ServerParse .Parse("SET ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Set, unchecked ((int)(0xff)) & ServerParse .Parse("sEt ...")); }
public virtual void TestIsCommit() { NUnit.Framework.Assert.AreEqual(ServerParse.Commit, ServerParse.Parse("commit")); NUnit.Framework.Assert.AreEqual(ServerParse.Commit, ServerParse.Parse("COMMIT")); NUnit.Framework.Assert.AreEqual(ServerParse.Commit, ServerParse.Parse("cOmmiT ")); }
public virtual void TestIsUse() { NUnit.Framework.Assert.AreEqual(ServerParse.Use, unchecked ((int)(0xff)) & ServerParse .Parse(" use ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Use, unchecked ((int)(0xff)) & ServerParse .Parse("USE ")); NUnit.Framework.Assert.AreEqual(ServerParse.Use, unchecked ((int)(0xff)) & ServerParse .Parse(" Use a")); }
public virtual void TestIsKillQuery() { NUnit.Framework.Assert.AreEqual(ServerParse.KillQuery, unchecked ((int)(0xff)) & ServerParse .Parse(" kill query ...")); NUnit.Framework.Assert.AreEqual(ServerParse.KillQuery, unchecked ((int)(0xff)) & ServerParse .Parse("kill query 111111 ...")); NUnit.Framework.Assert.AreEqual(ServerParse.KillQuery, unchecked ((int)(0xff)) & ServerParse .Parse("KILL QUERY 1335505632")); }
public virtual void TestIsKill() { NUnit.Framework.Assert.AreEqual(ServerParse.Kill, unchecked ((int)(0xff)) & ServerParse .Parse(" kill ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Kill, unchecked ((int)(0xff)) & ServerParse .Parse("kill 111111 ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Kill, unchecked ((int)(0xff)) & ServerParse .Parse("KILL 1335505632")); }
public virtual void TestIsBegin() { NUnit.Framework.Assert.AreEqual(ServerParse.Begin, ServerParse.Parse("begin")); NUnit.Framework.Assert.AreEqual(ServerParse.Begin, ServerParse.Parse("BEGIN")); NUnit.Framework.Assert.AreEqual(ServerParse.Begin, ServerParse.Parse("BegIn")); }
public virtual void TestIsStart() { NUnit.Framework.Assert.AreEqual(ServerParse.Start, unchecked ((int)(0xff)) & ServerParse .Parse("start ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Start, unchecked ((int)(0xff)) & ServerParse .Parse("START ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Start, unchecked ((int)(0xff)) & ServerParse .Parse("stART ...")); }
public virtual void TestIsShow() { NUnit.Framework.Assert.AreEqual(ServerParse.Show, unchecked ((int)(0xff)) & ServerParse .Parse("show ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Show, unchecked ((int)(0xff)) & ServerParse .Parse("SHOW ...")); NUnit.Framework.Assert.AreEqual(ServerParse.Show, unchecked ((int)(0xff)) & ServerParse .Parse("sHOw ...")); }