[Rem] Upper sum Text & upper bonus text | previewText & recordedScoreText (move to scoreText)
This commit is contained in:
@@ -126,11 +126,11 @@ namespace YachtDice.Tests
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ScoreSummaryService_UsesCatalogConfiguredUpperBonus()
|
||||
public void ScoreSummaryService_ReturnsCurrentScoringTotal()
|
||||
{
|
||||
var ones = MasterValueCategory.CreateForTest("ones", "Единицы", 1, categoryBonus: 1);
|
||||
var twos = MasterValueCategory.CreateForTest("twos", "Двойки", 2, categoryBonus: 2);
|
||||
var catalog = CategoryCatalog.CreateForTest(new List<CategoryDefinition> { ones, twos }, upperBonusThreshold: 15, upperBonusValue: 50);
|
||||
var catalog = CategoryCatalog.CreateForTest(new List<CategoryDefinition> { ones, twos });
|
||||
_createdAssets.Add(ones);
|
||||
_createdAssets.Add(twos);
|
||||
_createdAssets.Add(catalog);
|
||||
@@ -142,12 +142,10 @@ namespace YachtDice.Tests
|
||||
scoringSystem.ScoreCategory(CreateDice(1, 1, 1, 1, 2, 3), ones);
|
||||
scoringSystem.ScoreCategory(CreateDice(2, 2, 2, 2, 5, 6), twos);
|
||||
|
||||
var summaryService = new ScoreSummaryService(scoringSystem, catalog);
|
||||
var summaryService = new ScoreSummaryService(scoringSystem);
|
||||
var summary = summaryService.Calculate();
|
||||
|
||||
Assert.AreEqual(16, summary.UpperSum);
|
||||
Assert.IsTrue(summary.HasUpperBonus);
|
||||
Assert.AreEqual(66, summary.DisplayTotal);
|
||||
Assert.AreEqual(scoringSystem.TotalScore, summary.DisplayTotal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user