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

            var partialView = controller.MinAndMax("a");

            Assert.AreEqual(false, ((ResultsViewModel)partialView.Model).Success);
        }
        public void MinAndMaxPost_CorrectString_ReturnsPartialViewWithFlagTrueAndResultFromImplementations()
        {
            var basicAlgorithmsMock = new Mock<BasicAlgorithms>();
            basicAlgorithmsMock.Setup(m => m.MinAndMax(It.IsAny<int[]>())).Returns(new Tuple<int, int>(0, 12));
            var controller = new BasicAlgorithmsController(basicAlgorithmsMock.Object);

            var partialView = controller.MinAndMax("12 1 0 3");

            Assert.AreEqual(true, ((ResultsViewModel)partialView.Model).Success);
            Assert.AreEqual("minimum 0, maksimum 12", ((ResultsViewModel)partialView.Model).Result);
        }