Tests.Tests.TestTunnelVsThreadBehaviour C# (CSharp) Метод

TestTunnelVsThreadBehaviour() приватный Метод

private TestTunnelVsThreadBehaviour ( ) : void
Результат void
        public void TestTunnelVsThreadBehaviour()
        {
            Story story = CompileString(@"
-> knot_with_options ->
Finished tunnel.

Starting thread.
<- thread_with_options
* E
-
Done.

== knot_with_options ==
* A
* B
-
->->

== thread_with_options ==
* C
* D
");

            Assert.IsFalse(story.ContinueMaximally().Contains("Finished tunnel"));

            // Choices should be A, B
            Assert.AreEqual(2, story.currentChoices.Count);

            story.ChooseChoiceIndex(0);

            // Choices should be C, D, E
            Assert.IsTrue(story.ContinueMaximally().Contains("Finished tunnel"));
            Assert.AreEqual(3, story.currentChoices.Count);

            story.ChooseChoiceIndex(2);

            Assert.IsTrue(story.ContinueMaximally().Contains("Done."));
        }
Tests