Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public void TestKeyRangeInvert6()
        {
            var keyrange = new KeyRange <string>(Key <string> .CreatePrefixKey("a"), null);

            Assert.AreEqual(KeyRange <string> .OpenRange, keyrange.Invert());
        }
Esempio n. 3
0
        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);
        }