public void InputLengthTwoReturnsOne() { int[] cloudsArray = { 0, 0 }; int expected = 1; Assert.AreEqual(JumpingOnClouds.Calculate(cloudsArray), expected); }
public void JumpOverMultipleZeros() { int[] cloudsArray = { 0, 0, 0, 1, 0, 0 }; int expected = 3; Assert.AreEqual(JumpingOnClouds.Calculate(cloudsArray), expected); }
public void InputLengthOneReturnsZero() { int[] cloudsArray = { 0 }; int expected = 0; Assert.AreEqual(JumpingOnClouds.Calculate(cloudsArray), expected); }