Пример #1
0
 public void GetDistinctNumbersDialed_InvalidValidStartKeyAndOneHop_ReturnsNegativeOne(int startingKey)
 {
     Assert.That(PhoneDialKnightChessSolver.GetDistinctNumbersDialed(startingKey, 1), Is.EqualTo(-1));
 }
Пример #2
0
 public void GetDistinctNumbersDialed_StartingOnSixWithGivenHops_ReturnsExpectedResult(int numberOfHops, int expectedResult)
 {
     Assert.That(PhoneDialKnightChessSolver.GetDistinctNumbersDialed(6, numberOfHops), Is.EqualTo(expectedResult));
 }
Пример #3
0
 public void GetDistinctNumbersDialed_ValidStartKeyAndOneHop_ReturnsExpectedResult(int startingKey, int expectedResult)
 {
     Assert.That(PhoneDialKnightChessSolver.GetDistinctNumbersDialed(startingKey, 1), Is.EqualTo(expectedResult));
 }