Example #1
0
        public void RoleCanAddDirection()
        {
            var target = new Character();
            Assert.AreEqual(0, target.Directions.Count);

            target.Add(new Direction());
            target.Add(new Direction());
            Assert.AreEqual(2, target.Directions.Count);
        }
Example #2
0
        public void RoleCanRemoveDirection()
        {
            var target = new Character();

            var direction1 = new Direction();
            var direction2 = new Direction();
            target.Add(direction1);
            target.Add(direction2);
            Assert.AreEqual(2, target.Directions.Count);

            target.Remove(direction1);
            Assert.AreEqual(1, target.Directions.Count);
        }