public void IsRealMakeVimpireNumber_Test() { int num = 1827; Boolean expected = true; int[] i = VampireNumber.GetNumberParts(num); List <int> ii = VampireNumber.GetNumberTwoVariants(i); Boolean actual = VampireNumber.IsRealMakeVimpireNumber(ii, num); Assert.AreEqual(expected, actual); }
public void GetNumberTwoVariants_Test() { int[] i = VampireNumber.GetNumberParts(4321); List <int> actual = VampireNumber.GetNumberTwoVariants(i); List <int> expected = new List <int>() { 12, 13, 14, 21, 23, 24, 31, 32, 34, 41, 42, 43 }; CollectionAssert.AreEqual(expected, actual); }