public void MergePost_IncorrectSecondString_ReturnsPartialViewWithFlagFalse()
        {
            var controller = new BasicAlgorithmsController();

            var partialView = controller.Merge("1 2", "b");

            Assert.AreEqual(false, ((ResultsViewModel)partialView.Model).Success);
        }
        public void MergePost_CorrectString_ReturnsMergedArrays()
        {
            var basicAlgorithmsMock = new Mock<BasicAlgorithms>();
            basicAlgorithmsMock.Setup(m => m.Merge(new[] { 1, 2, 6 }, new[] { 3, 5, 9 })).Returns(new[] { 1, 2, 3, 5, 6, 9 });
            var controller = new BasicAlgorithmsController(basicAlgorithmsMock.Object);

            var partialView = controller.Merge("1 2 6", "3 5 9");

            Assert.AreEqual(true, ((ResultsViewModel)partialView.Model).Success);
            Assert.AreEqual("1, 2, 3, 5, 6, 9", ((ResultsViewModel)partialView.Model).Result);
        }