예제 #1
0
        public void TestOverwriteWorks()
        {
            var story = new Story();
            story.RandomizeObject();

            var story2 = new Story();
            story.RandomizeObject();

            story.Overwrite(story2);

            Assert.IsTrue(story.Artifact.Name == story2.Artifact.Name);
            Assert.IsTrue(story.EndingLocation.Name == story2.EndingLocation.Name);
            Assert.IsTrue(story.EndingScenario.Name == story2.EndingScenario.Name);
            Assert.IsTrue(story.MajorTwist.Name == story2.MajorTwist.Name);
            Assert.IsTrue(story.StartingLocation.Name == story2.StartingLocation.Name);
            Assert.IsTrue(story.StartingScenario.Name == story2.StartingScenario.Name);
        }