public void TestLsn() { testName = "TestLsn"; SetUpTest(true); LSN lsn = new LSN(12, 411); Assert.AreEqual(12, lsn.LogFileNumber); Assert.AreEqual(411, lsn.Offset); LSN newLsn = new LSN(15, 410); Assert.AreEqual(0, LSN.Compare(lsn, lsn)); Assert.Greater(0, LSN.Compare(lsn, newLsn)); }
public void TestLsn() { testName = "TestLsn"; testHome = testFixtureHome + "/" + testName; Configuration.ClearDir(testHome); LSN lsn = new LSN(12, 411); Assert.AreEqual(12, lsn.LogFileNumber); Assert.AreEqual(411, lsn.Offset); LSN newLsn = new LSN(15, 410); Assert.AreEqual(0, LSN.Compare(lsn, lsn)); Assert.Greater(0, LSN.Compare(lsn, newLsn)); }