Esempio n. 1
0
        public void JumpingOnCloudsTest(int [] clouds, int expectedResult)
        {
            //Arrange

            //Act
            int actual = JumpingOnTheClouds.JumpingOnClouds(clouds);

            //Assert
            Assert.AreEqual(expectedResult, actual);
        }
        public void TestCase1()
        {
            //Arrange
            string path    = "0 0 0 1 0 0";
            var    pathArr = path.Split(' ').Select(n => Convert.ToInt32(n)).ToArray();
            //Act
            var result = JumpingOnTheClouds.JumpingOnClouds(pathArr);

            //Assert
            Assert.AreEqual(3, result);
        }