public void ComparerTimeStruct_Test(Time[] source, Time[] NLR, Time[] LNR, Time[] LRN, IComparer <Time> comparer) { var tree = new TreeCollection <Time>(source, comparer); var test = tree.NLR(); var test1 = tree.LNR(); var test2 = tree.LRN(); CollectionAssert.AreEqual(tree.NLR(), NLR); CollectionAssert.AreEqual(tree.LNR(), LNR); CollectionAssert.AreEqual(tree.LRN(), LRN); }
public void ComparerInt32_Test(int[] source, int[] NLR, int[] LNR, int[] LRN, IComparer <int> comparer) { var tree = new TreeCollection <int>(source, comparer); CollectionAssert.AreEqual(tree.NLR(), NLR); CollectionAssert.AreEqual(tree.LNR(), LNR); CollectionAssert.AreEqual(tree.LRN(), LRN); }
public void ComparerBookWithComparer_Test(Book[] source, Book[] NLR, Book[] LNR, Book[] LRN, IComparer <Book> comparer) { var tree = new TreeCollection <Book>(source, comparer); CollectionAssert.AreEqual(tree.NLR(), NLR); CollectionAssert.AreEqual(tree.LNR(), LNR); CollectionAssert.AreEqual(tree.LRN(), LRN); }
public void ComparerString_Test(string[] source, string[] NLR, string[] LNR, string[] LRN, IComparer <string> comparer) { var tree = new TreeCollection <string>(source, comparer); CollectionAssert.AreEqual(tree.NLR(), NLR); CollectionAssert.AreEqual(tree.LNR(), LNR); CollectionAssert.AreEqual(tree.LRN(), LRN); }
public void LNR_Test() { IEnumerable <T> result = _tree.LNR(); Assert.AreEqual(LNR, _tree.LNR()); }