public static void AGameCanNotBePlayedIfItIsNotAlreadyInstalled() { var console = new GenericGameConsole(); var me2 = new Game { Title = "Mass Effect 2" }; console.Play(me2); Assert.Null(console.CurrentGame); }
public static void TheGamePlayedShouldBeTheCurrentGame() { var console = new GenericGameConsole(); var me2 = new Game { Title = "Mass Effect 2" }; console.InstallGame(me2); console.Play(me2); console.CurrentGame.Should().Be(me2); }
public static void QuitCurrentGameShouldSetTheCurrentGameToNull() { var console = new GenericGameConsole(); var me2 = new Game { Title = "Mass Effect 2" }; console.InstallGame(me2); console.Play(me2); console.QuitCurrentGame(); Assert.Null(console.CurrentGame); }
public void AGameCanNotBePlayedIfItWasUninstalled() { var console = new GenericGameConsole(); var me2 = new Game { Title = "Mass Effect 2" }; console.InstallGame(me2); console.Play(me2); console.UninstallGame(me2); Assert.Null(console.CurrentGame); }
public static void OnlyTheGameBeingUninstalledShouldBeStopped() { var console = new GenericGameConsole(); var me2 = new Game { Title = "Mass Effect 2" }; var apex = new Game { Title = "Apex Legends" }; console.InstallGames(me2, apex); console.Play(apex); console.UninstallGame(me2); Assert.AreSame(apex, console.CurrentGame); }