Tests.Tests.TestChoiceDivertsToDone C# (CSharp) Method

TestChoiceDivertsToDone() private method

private TestChoiceDivertsToDone ( ) : void
return void
        public void TestChoiceDivertsToDone()
        {
            var story = CompileString(@"* choice -> DONE");

            story.Continue();

            Assert.AreEqual(1, story.currentChoices.Count);
            story.ChooseChoiceIndex(0);

            Assert.AreEqual("choice\n", story.Continue());
            Assert.IsFalse(story.hasError);
        }
Tests