public void CommandList_GetCommand_FindPcCommand() { Mock <IPlayerCharacter> pc = new Mock <IPlayerCharacter>(); IMobileObjectCommand command = commandList.GetCommand(pc.Object, "LOOK"); Assert.AreEqual(typeof(Look), command.GetType()); }
public void CommandList_GetCommand_GodCanRunGodCommand() { Mock <IPlayerCharacter> pc = new Mock <IPlayerCharacter>(); pc.Setup(e => e.God).Returns(true); IMobileObjectCommand command = commandList.GetCommand(pc.Object, "ITEMSTATS"); Assert.AreEqual(typeof(ItemStats), command.GetType()); }
public void CommandList_GetCommand_LReturnsLook() { Mock <IPlayerCharacter> pc = new Mock <IPlayerCharacter>(); pc.Setup(e => e.God).Returns(false); IMobileObjectCommand command = commandList.GetCommand(pc.Object, "L"); Assert.AreEqual(typeof(Look), command.GetType()); }