コード例 #1
0
 public void AddBonus_Positive()
 {
     measurement.AddBonus(9266, "my condition");
     Assert.That(measurement.Bonuses, Has.Count.EqualTo(1));
     Assert.That(measurement.Bonuses[0].Value, Is.EqualTo(9266));
     Assert.That(measurement.Bonuses[0].Condition, Is.EqualTo("my condition"));
     Assert.That(measurement.Bonuses[0].IsConditional, Is.True);
 }