Beispiel #1
0
        public void SetEntityTest()
        {
            Entity        player = new Player();
            EntityControl ec     = new EntityControl(player);
            Entity        enemy  = new Enemy();

            ec.SetEntity(enemy);

            Entity expected = enemy;
            Entity actual   = ec.Entity;

            Assert.AreEqual <Entity>(expected, actual);
            Assert.AreSame(expected, actual);
        }