Пример #1
0
 public void CloneAndClearWorks()
 {
     var l = new PtrLenList();
     l.TryInclude(0, 1);
     l.TryInclude(10, 11);
     var l2 = l.CloneAndClear();
     Assert.AreEqual("0-1;10-21", Str(l2));
     Assert.IsTrue(l.Empty);
 }
Пример #2
0
 public void EmptyCloneAndClearIsEmpty()
 {
     var l = new PtrLenList();
     var l2 = l.CloneAndClear();
     Assert.IsTrue(l2.Empty);
 }