Tests.Tests.TestKnotThreadInteraction2 C# (CSharp) Method

TestKnotThreadInteraction2() private method

private TestKnotThreadInteraction2 ( ) : void
return void
        public void TestKnotThreadInteraction2()
        {
            Story story = CompileString(@"
-> knot
=== knot
    <- threadA
    When should this get printed?
    -> DONE

=== threadA
    -> tunnel ->
    Finishing thread.
    -> DONE

=== tunnel
    -   I’m in a tunnel
    *   I’m an option
    -   ->->

");

            Assert.AreEqual("I’m in a tunnel\nWhen should this get printed?\n", story.ContinueMaximally());
            Assert.AreEqual(1, story.currentChoices.Count);
            Assert.AreEqual(story.currentChoices[0].text, "I’m an option");

            story.ChooseChoiceIndex(0);
            Assert.AreEqual("I’m an option\nFinishing thread.\n", story.ContinueMaximally());
            Assert.IsFalse(story.hasError);
        }
Tests