public void TestOnceOnlyChoicesCanLinkBackToSelf()
{
var story = CompileString(@"
-> opts
= opts
* (firstOpt) [First choice] -> opts
* {firstOpt} [Second choice] -> opts
* -> end
- (end)
-> END
");
story.ContinueMaximally();
Assert.AreEqual(1, story.currentChoices.Count);
Assert.AreEqual("First choice", story.currentChoices[0].text);
story.ChooseChoiceIndex(0);
story.ContinueMaximally();
Assert.AreEqual(1, story.currentChoices.Count);
Assert.AreEqual("Second choice", story.currentChoices[0].text);
story.ChooseChoiceIndex(0);
story.ContinueMaximally();
Assert.AreEqual(null, story.currentErrors);
}