Esempio n. 1
0
        public void SceneCanAddCharacter()
        {
            var target = new Scene();
            Assert.AreEqual(0, target.Characters.Count);

            target.Add(new Character());
            target.Add(new Character());
            Assert.AreEqual(2, target.Characters.Count);
        }
Esempio n. 2
0
        public void SceneCanRemoveCharacter()
        {
            var target = new Scene();

            var character1 = new Character();
            var character2 = new Character();
            target.Add(character1);
            target.Add(character2);
            Assert.AreEqual(2, target.Characters.Count);

            target.Remove(character1);
            Assert.AreEqual(1, target.Characters.Count);
        }