Esempio n. 1
0
 public void GetDistinctNumbersDialed_InvalidValidStartKeyAndOneHop_ReturnsNegativeOne(int startingKey)
 {
     Assert.That(PhoneDialKnightChessSolver.GetDistinctNumbersDialed(startingKey, 1), Is.EqualTo(-1));
 }
Esempio n. 2
0
 public void GetDistinctNumbersDialed_StartingOnSixWithGivenHops_ReturnsExpectedResult(int numberOfHops, int expectedResult)
 {
     Assert.That(PhoneDialKnightChessSolver.GetDistinctNumbersDialed(6, numberOfHops), Is.EqualTo(expectedResult));
 }
Esempio n. 3
0
 public void GetDistinctNumbersDialed_ValidStartKeyAndOneHop_ReturnsExpectedResult(int startingKey, int expectedResult)
 {
     Assert.That(PhoneDialKnightChessSolver.GetDistinctNumbersDialed(startingKey, 1), Is.EqualTo(expectedResult));
 }