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); }
public void TestCopyWorks() { var story = new Story(); story.RandomizeObject(); var story2 = story.Copy(); Assert.IsTrue(story.Artifact != story2.Artifact); Assert.IsTrue(story.EndingLocation != story2.EndingLocation); Assert.IsTrue(story.EndingScenario != story2.EndingScenario); Assert.IsTrue(story.MajorTwist != story2.MajorTwist); Assert.IsTrue(story.StartingLocation != story2.StartingLocation); Assert.IsTrue(story.StartingScenario != story2.StartingScenario); }