public void ShouldStoreTopTenRegisterMessage() { //Given var topTenGame = new mod.TopTenGame(); const ulong idMsg = 25; //With topTenGame.StoreRegisterMsg(idMsg); //Then topTenGame.RegisterMsgId.Should().Be(idMsg); }
public void ShouldResetTopTenRegisterMessage() { //Given var topTenGame = new mod.TopTenGame(); const ulong idMsg = 25; topTenGame.StoreRegisterMsg(idMsg); const ulong expectedIdMsg = 0; //With topTenGame.ResetRegisterMsg(); //Then topTenGame.RegisterMsgId.Should().Be(expectedIdMsg); }
public void ShouldResetTopTenGameParams() { //Given var topTenGame = new mod.TopTenGame(); const ulong idMsg = 25; topTenGame.StoreRegisterMsg(idMsg); topTenGame.RegisterMsgId.Should().Be(idMsg); const string theme = "Thème 1"; List <string> themesList = new List <string> { theme }; topTenGame.RegisterTheme(theme); topTenGame.Themes.Should().BeEquivalentTo(themesList); const string player = "Player 1"; List <string> playersList = new List <string> { player }; topTenGame.RegisterUser(player); topTenGame.Users.Should().BeEquivalentTo(playersList); const ulong expectedIdMsg = 0; List <string> themesListExpected = new List <string> { }; List <string> playersListExpected = new List <string> { }; const bool expectedCaptenPresence = false; topTenGame.NextCapten(); //With topTenGame.Clear(); //Then topTenGame.RegisterMsgId.Should().Be(expectedIdMsg); topTenGame.Themes.Should().BeEquivalentTo(themesListExpected); topTenGame.Users.Should().BeEquivalentTo(playersListExpected); topTenGame.HasCapten.Should().Be(expectedCaptenPresence); }