public void GetPayerScoreRecordOnSelectedCharacterTest() { SelectedCharacter targetCharacter = new SelectedCharacter(0, 1); PlayerScoreRecord excepted = new PlayerScoreRecord(new PlayerScore(31560, 720, PlayerScore.Stage.Stage5, 0.75f), new SelectedGame(new SelectedCharacter(0, 1), new SelectedStages(1, SelectedStages.StageDiffculity.Normal)), "Baz", new DateTime(2018, 7, 15, 17, 45, 0)); PlayerScoreRecord actural = playerScoreIO.GetPlayerScore(p => p.SelectedGame.SelectedCharacter.Equals(targetCharacter)); Assert.That(actural.Equals(excepted)); }
public void PlayerScoreNotEqualTest() { PlayerScoreRecord playerScoreRecord1 = new PlayerScoreRecord( new PlayerScore(21505, 500, PlayerScore.Stage.Stage4, 0.45f), new SelectedGame(new SelectedCharacter(0, 0), new SelectedStages(0, SelectedStages.StageDiffculity.Easy)), "Foo", new DateTime(2018, 7, 15, 16, 0, 0)); PlayerScoreRecord playerScoreRecord2 = new PlayerScoreRecord( new PlayerScore(21505, 500, PlayerScore.Stage.Stage4, 0.45f), new SelectedGame(new SelectedCharacter(0, 0), new SelectedStages(0, SelectedStages.StageDiffculity.Easy)), "Bar", new DateTime(2018, 7, 15, 16, 0, 0)); Assert.That(!playerScoreRecord1.Equals(playerScoreRecord2)); }