コード例 #1
0
 public virtual void TestclearSlowDataNode()
 {
     NUnit.Framework.Assert.AreEqual(ManagerParseClear.SlowDatanode, unchecked ((int)(0xff
                                                                                      )) & ManagerParseClear.Parse("clear @@slow where datanode=d", 5));
     NUnit.Framework.Assert.AreEqual(ManagerParseClear.SlowDatanode, unchecked ((int)(0xff
                                                                                      )) & ManagerParseClear.Parse("CLEAR @@SLOW WHERE DATANODE= D", 5));
     NUnit.Framework.Assert.AreEqual(ManagerParseClear.SlowDatanode, unchecked ((int)(0xff
                                                                                      )) & ManagerParseClear.Parse("clear @@SLOW where  DATANODE= d", 5));
 }
コード例 #2
0
 public virtual void TestclearSlowSchema()
 {
     NUnit.Framework.Assert.AreEqual(ManagerParseClear.SlowSchema, unchecked ((int)(0xff
                                                                                    )) & ManagerParseClear.Parse("clear @@slow where schema=s", 5));
     NUnit.Framework.Assert.AreEqual(ManagerParseClear.SlowSchema, unchecked ((int)(0xff
                                                                                    )) & ManagerParseClear.Parse("CLEAR @@SLOW WHERE SCHEMA= S", 5));
     NUnit.Framework.Assert.AreEqual(ManagerParseClear.SlowSchema, unchecked ((int)(0xff
                                                                                    )) & ManagerParseClear.Parse("CLEAR @@slow where SCHEMA= s", 5));
 }