コード例 #1
0
 public void ShouldIncreaseHealthInExpectedRangeAfterSleeping()
 {
     var sut = new PlayerCharacters { Health = 100 };
      sut.Sleep();
      Assert.That(sut.Health, Is.InRange(101, 200));
 }
コード例 #2
0
 public void ShouldIncreaseHealthAfterSleeping()
 {
     var sut = new PlayerCharacters { Health = 100 };
      sut.Sleep();
      Assert.That(sut.Health, Is.GreaterThan(100));
 }