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)); }
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)); }