コード例 #1
0
 public void ItemCanBeAddedToInventory()
 {
     var testSubject = new CharacterInventory();
     var item = new Item("Fake item", 0);
     testSubject.Add(item);
     testSubject.Should().Contain(item);
 }
コード例 #2
0
 public void CharacterCanBeInitializedWithItemInInventory()
 {
     var item = new Item("Fake item", 0);
     var character = new Character { Inventory = { item } };
     character.Inventory.Should().Contain(item);
 }