示例#1
0
 [Test] public void Test_Add()
 {
     SkipList sl = new SkipList();
     Assert.AreEqual(0, sl.Count);
     sl.Add("1", "bar");
     Assert.AreEqual(1, sl.Count);
     sl.Add("2", "baz");
     Assert.AreEqual(2, sl.Count);
 }
示例#2
0
 [Test] public void Test_Get()
 {
     SkipList sl = new SkipList();
     sl.Add("1", "bar");
     Assert.AreEqual("bar", sl["1"]);
 }
示例#3
0
 [Test] public void Test_Key_Twice()
 {
     SkipList sl = new SkipList();
     sl.Add("one", "one");
     sl.Add("one", "one");
 }
示例#4
0
 [Test] public void Test_Null_Key()
 {
     SkipList sl = new SkipList();
     sl.Add(null, "one");
 }