[Rem] Upper sum Text & upper bonus text | previewText & recordedScoreText (move to scoreText)

This commit is contained in:
2026-03-08 00:34:45 +07:00
parent dc82e93322
commit 9236d66022
43 changed files with 1418 additions and 596 deletions
@@ -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);
}
}
}