public void ThenThrowsInvalidSessionIDException(string messageID) { CheckMessageHistory checkMessageHistoryUseCase = new CheckMessageHistory(new SaveNewGameDataDummy() , new SessionIDMessageHistoryGatewaySpy(), new GameDataGatewayDummy()); Assert.Throws <InvalidMessageIDException>(() => { checkMessageHistoryUseCase.Execute( "SessionID", messageID, 1, 2, "Current Card", new Dictionary <string, int> { { "Dog", 1 } }); }); }
public void ThenThrowsInvalidStartingStatsException(string invalidKey) { CheckMessageHistory checkMessageHistoryUseCase = new CheckMessageHistory( new SaveNewGameDataDummy() , new SessionIDMessageHistoryGatewaySpy(), new GameDataGatewayDummy()); Assert.Throws <InvalidStartingStatsException>(() => { checkMessageHistoryUseCase.Execute( "SessionID", "MessageID", 1, 2, "Current Card", new Dictionary <string, int> { { invalidKey, 1 } }); }); Assert.Throws <InvalidStartingStatsException>(() => { checkMessageHistoryUseCase.Execute( "SessionID", "MessageID", 1, 2, "Current Card", null); }); Assert.Throws <InvalidStartingStatsException>(() => { checkMessageHistoryUseCase.Execute( "SessionID", "MessageID", 1, 2, "Current Card", new Dictionary <string, int>()); }); }