public void SimpleRepeatTest() { NaturalArray natural = new NaturalArray(1, 2, 3, 3, 5, 6); uint[] duplicates = natural.GetDuplicates(); uint[] duplicatesArray = new uint[] { 3 }; Assert.IsTrue(compareArray(duplicates, duplicatesArray)); }
public void MultipleShufleRepeatTest() { NaturalArray natural = new NaturalArray(7, 1, 6, 3, 3, 5, 3, 6, 7); uint[] duplicates = natural.GetDuplicates(); uint[] duplicatesArray = new uint[] { 3, 6, 7 }; Assert.IsTrue(compareArray(duplicates, duplicatesArray)); }
public void SimpleManyNoRepeatTest() { NaturalArray natural = new NaturalArray(1, 2, 3, 4, 5, 6); uint[] duplicates = natural.GetDuplicates(); uint[] emptyArray = new uint[] { }; Assert.IsTrue(compareArray(duplicates, emptyArray)); }
public void SimpleTwoNoRepeatTest() { uint[] inputArray = new uint[] { 1, 2 }; NaturalArray natural = new NaturalArray(inputArray); uint[] duplicates = natural.GetDuplicates(); uint[] emptyArray = new uint[] { }; Assert.IsTrue(compareArray(duplicates, emptyArray)); }
public void ArgumentWrongTest() { NaturalArray natural = new NaturalArray(0, 2); }