Exemplo n.º 1
0
        public void TestCreateCorpsePickup()
        {
            CorpseNPCObject corpse = new CorpseNPCObject("", "desc");
            string          output = "";

            using (StringWriter sw = new StringWriter())
            {
                Console.SetOut(sw);
                corpse.PickupObject(new Room("", new Point(0, 0)), null);
                output = sw.ToString();
            }
            Assert.IsTrue(output.Contains("Can't pickup a dead body"));
        }
Exemplo n.º 2
0
        public void TestCreateCorpseObject()
        {
            CorpseNPCObject corpse = new CorpseNPCObject("", "desc");

            Assert.IsNotNull(corpse);
        }