Пример #1
0
        public void ForFrodooo()
        {
            var sln = new Solution("d5", 3, new string[] { "0 g5", "0 d2", "1 d7" });

            Assert.AreEqual(FOR_FRODOOO, sln.Solve());
        }
Пример #2
0
        public void Test1(int[] inputNumbers, int[] expectedOutput)
        {
            var result = Solution.Solve(inputNumbers);

            Assert.AreEqual(result, expectedOutput);
        }
Пример #3
0
        public void OnlyAllies()
        {
            var sln = new Solution("d5", 2, new string[] { "0 g5", "0 d2" });

            Assert.AreEqual(ONLY_ALLIES, sln.Solve());
        }
Пример #4
0
        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());
        }
Пример #5
0
        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);
 }