Ejemplo n.º 1
0
        public void WillTrimNameItem()
        {
            Engine.Items.Add(new Item(0x40000000)
            {
                Name = " need trim "
            });

            Assert.AreEqual("need trim", EntityCommands.Name(0x40000000));

            Assert.AreEqual(string.Empty, EntityCommands.Name(0x40000001));

            Engine.Items.Remove(0x40000000);
        }
Ejemplo n.º 2
0
        public void WillGetName()
        {
            string name = EntityCommands.Name("self");

            Assert.AreEqual("Shmoo", name);
        }