コード例 #1
0
 public void UnknownItemsReturnAPriceOfZero()
 {
     var subject = new ItemService();
     var result = subject.PriceFor("something");
     Assert.That(result, Is.EqualTo(0));
 }
コード例 #2
0
 public void EachIndividualItemIsPricedCorrectly(string item, int price)
 {
     var subject = new ItemService();
     var result = subject.PriceFor(item);
     Assert.That(result, Is.EqualTo(price));
 }