public void TestKeyRangeInvert4() { var keyrange = new KeyRange <int>(null, Key <int> .CreateKey(2, true)); Assert.AreEqual(keyrange.Invert(), new KeyRange <int>(Key <int> .CreateKey(2, false), null)); }
public void TestKeyRangeInvert6() { var keyrange = new KeyRange <string>(Key <string> .CreatePrefixKey("a"), null); Assert.AreEqual(KeyRange <string> .OpenRange, keyrange.Invert()); }
public void TestKeyRangeInvert2() { var keyrange = new KeyRange <int>(Key <int> .CreateKey(1, false), Key <int> .CreateKey(2, true)); Assert.AreEqual(keyrange.Invert(), KeyRange <int> .OpenRange); }