public void PermutationTest() { OrderedSet <int> actual = new OrderedSet <int> { 10, 12, 45, 1 }; Assert.AreEqual(12, actual.Permutations(2)); }
public void PerumtationsEmptySetPUT(OrderedSet <int> actual, int actualVal) { if (actual == null) { actual.Permutations(actualVal); PexAssert.IsTrue(false, "ArgumentNullException should be thrown"); } else if (actualVal == 0) { actual.Permutations(actualVal); PexAssert.IsTrue(false, "ArgumentOutOfRangeException should be thrown"); } else { PexObserve.ValueForViewing <int[]>("actual OrderedSet", actual.ToArray()); PexObserve.ValueForViewing("Result of permutation", actual.Permutations(actualVal)); } }
public void PerumtationsEmptySetPUT(OrderedSet<int> actual, int actualVal) { if (actual == null) { actual.Permutations(actualVal); PexAssert.IsTrue(false, "ArgumentNullException should be thrown"); } else if (actualVal == 0) { actual.Permutations(actualVal); PexAssert.IsTrue(false, "ArgumentOutOfRangeException should be thrown"); } else { PexObserve.ValueForViewing<int[]>("actual OrderedSet", actual.ToArray()); PexObserve.ValueForViewing("Result of permutation",actual.Permutations(actualVal)); } }
public void PerumtationsEmptySetZeroItems() { OrderedSet<int> actual = new OrderedSet<int>(); actual.Permutations(0); }
public void PermutationTest() { OrderedSet<int> actual = new OrderedSet<int> { 10, 12, 45, 1 }; Assert.AreEqual(12, actual.Permutations(2)); }
public void PermutationsEmptySetTest() { OrderedSet<int> actual = new OrderedSet<int>(); Assert.AreEqual(0, actual.Permutations(2)); }
public void PerumtationsEmptySetZeroItems() { OrderedSet <int> actual = new OrderedSet <int>(); actual.Permutations(0); }
public void PermutationsEmptySetTest() { OrderedSet <int> actual = new OrderedSet <int>(); Assert.AreEqual(0, actual.Permutations(2)); }