Tests.Tests.TestTurnsSinceNested C# (CSharp) Method

TestTurnsSinceNested() private method

private TestTurnsSinceNested ( ) : void
return void
        public void TestTurnsSinceNested()
        {
            var story = CompileString(@"
-> empty_world
=== empty_world ===
    {TURNS_SINCE(-> then)} = -1
    * (then) stuff
        {TURNS_SINCE(-> then)} = 0
        * * (next) more stuff
            {TURNS_SINCE(-> then)} = 1
        -> DONE
");
            Assert.AreEqual("-1 = -1\n", story.ContinueMaximally());

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

            Assert.AreEqual("stuff\n0 = 0\n", story.ContinueMaximally());

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

            Assert.AreEqual("more stuff\n1 = 1\n", story.ContinueMaximally());
        }
Tests