public static void AreEqual(IHighScoreRecordTableUnit expected, IHighScoreRecordTableUnit actual) { Assert.IsNotNull(expected, "expected"); Assert.IsNotNull(actual, "actual"); Assert.AreEqual(expected.Id, actual.Id, "楽曲ID"); Assert.AreEqual(expected.Name, actual.Name, "楽曲名"); Assert.AreEqual(expected.Genre, actual.Genre, "ジャンル"); Assert.AreEqual(expected.Difficulty, actual.Difficulty, "難易度"); Assert.AreEqual(expected.Score, actual.Score, "スコア"); Assert.AreEqual(expected.BaseRating, actual.BaseRating, "譜面定数"); Assert.AreEqual(expected.Rating, actual.Rating, "単曲レート値"); }
public void Set(IHighScoreRecordTableUnit tableUnit) { if (tableUnit == null) { throw new ArgumentNullException(nameof(tableUnit)); } Id = tableUnit.Id; Name = tableUnit.Name; Genre = tableUnit.Genre; Difficulty = tableUnit.Difficulty; Score = tableUnit.Score; Rank = tableUnit.Rank; BaseRating = tableUnit.BaseRating; Rating = tableUnit.Rating; IsClear = tableUnit.IsClear; ComboStatus = tableUnit.ComboStatus; ChainStatus = tableUnit.ChainStatus; }
public HighScoreRecordTableUnit(IHighScoreRecordTableUnit tableUnit) { Set(tableUnit); }