public void TestPlayerLocatesItself() { Player John = new Player("John", "Random Player"); Assert.AreEqual(John, John.Locate("me"), "Test Player Locates itself"); Assert.AreEqual(John, John.Locate("inventory"), "Test Player Locates itself"); }
public void TestPlayerLocatesItem() { Player John = new Player("John", "Random Player"); Item shovel = new Item(new String [] { "shovel", "spade" }, "a shovel", "This is a might fine ..."); John.Inventory.Put(shovel); Assert.AreEqual(shovel, John.Locate("shovel"), "Test Player Locates Item"); }
public void TestPlayerLocatesNothing() { Player John = new Player("John", "Random Player"); Assert.AreEqual(null, John.Locate("nothing"), "Test Player Locates itself"); }