コード例 #1
0
 private void DisplayLoadAndWeight()
 {
     Weight load = new Weight();
     LoadDisplay(load.CalculateLoad(Player.PlayerClass.TotalScore.StrTotalScore, TotalWeight));
     totalWeightTextBox.Text = TotalWeight.ToString();
 }
コード例 #2
0
ファイル: WeightTests.cs プロジェクト: Kindlar/Character-Gen
 public void GivenStrScoreAndWeightLoadReturned(int str, decimal weight, string expect)
 {
     Weight load = new Weight();
     string actual = load.CalculateLoad(str, weight);
     Assert.AreEqual(expect, actual);
 }