public void TestOnceOnlyChoicesWithOwnContent()
{
Story story = CompileString(@"
VAR times = 3
-> home
== home ==
~ times = times - 1
{times >= 0:-> eat}
I've finished eating now.
-> END
== eat ==
This is the {first|second|third} time.
* Eat ice-cream[]
* Drink coke[]
* Munch cookies[]
-
-> home
");
story.ContinueMaximally();
Assert.AreEqual(3, story.currentChoices.Count);
story.ChooseChoiceIndex(0);
story.ContinueMaximally();
Assert.AreEqual(2, story.currentChoices.Count);
story.ChooseChoiceIndex(0);
story.ContinueMaximally();
Assert.AreEqual(1, story.currentChoices.Count);
story.ChooseChoiceIndex(0);
story.ContinueMaximally();
Assert.AreEqual(0, story.currentChoices.Count);
}