public void ForFrodooo() { var sln = new Solution("d5", 3, new string[] { "0 g5", "0 d2", "1 d7" }); Assert.AreEqual(FOR_FRODOOO, sln.Solve()); }
public void Test1(int[] inputNumbers, int[] expectedOutput) { var result = Solution.Solve(inputNumbers); Assert.AreEqual(result, expectedOutput); }
public void OnlyAllies() { var sln = new Solution("d5", 2, new string[] { "0 g5", "0 d2" }); Assert.AreEqual(ONLY_ALLIES, sln.Solve()); }
public void CloseToTheEdge() { var sln = new Solution("a8", 5, new string[] { "0 e8", "1 d7", "0 c6", "1 b5", "0 a4" }); Assert.AreEqual(CLOSE_TO_THE_EDGE, sln.Solve()); }
public void MovingFreely() { var sln = new Solution("d5", 2, new string[] { "0 c1", "1 e8" }); Assert.AreEqual(MOVING_FREELY, sln.Solve()); }
public void Solve_GivenArrayWithNoNumbersThatAddUpToK_ReturnsFalse(int k, int[] inputNumbers) { Assert.AreEqual(Solution.Solve(k, inputNumbers), false); }
public void Solve_GivenArrayWithAnyTwoNumbersThatAddUpToK_ReturnsTrue(int k, int[] inputNumbers) { Assert.AreEqual(Solution.Solve(k, inputNumbers), true); }