public void SelectDefaultScene_GivenPopulatedRegistry_FindsSceneWithReservedName(string correctChoice) { var strategy = new DefaultSceneSelectionStrategy(); var selection = strategy.SelectStartScene("TestScene", correctChoice, "RandomScene", "JunkScene"); Assert.That(selection, Is.EqualTo(correctChoice)); }
public void SelectDefaultScene_GivenRegistryWithNoReservedNames_ReturnsFirstEntry() { var registry = new SceneRouteTable(); registry.Scenes.Add(typeof(TestScene)); registry.Scenes.Add(typeof(RandomScene)); var start = new DefaultSceneSelectionStrategy().SelectStartScene(registry); Assert.That(start, Is.EqualTo("TestScene")); }