예제 #1
0
    [TestCase("2,0,2", 0, false)] // loop
    public void BasicScenario(string source, int startIndex, bool expected)
    {
        var actual = JumpGame.Run(source.Split(',').Select(int.Parse).ToArray(), startIndex);

        Assert.That(actual, Is.EqualTo(expected));
    }