Esempio n. 1
0
 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 ..."
                                                                            ));
 }
Esempio n. 2
0
 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 "
                                                                             ));
 }
Esempio n. 3
0
 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 ..."
                                                                           ));
 }
Esempio n. 4
0
 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 ..."
                                                                           ));
 }
Esempio n. 5
0
 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 ..."
                                                                           ));
 }
Esempio n. 6
0
 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"
                                                                              ));
 }
Esempio n. 7
0
 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 ..."));
 }
Esempio n. 8
0
 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 "));
 }
Esempio n. 9
0
 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"));
 }
Esempio n. 10
0
 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"));
 }
Esempio n. 11
0
 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"));
 }
Esempio n. 12
0
 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"));
 }
Esempio n. 13
0
 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 ..."));
 }
Esempio n. 14
0
 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 ..."));
 }