Ejemplo n.º 1
0
        public void ShouldApplyAllModifiersOfAreaType()
        {
            SelectionType type = SelectionType.MULTIPLE;

            ISelectable[] newSelection = TestUtils.GetSomeObjects(Random.Range(1, 5));
            ISelectable[] oldSelection = new ISelectable[] { };
            var           result       = _modifiersInterface.ApplyAll(oldSelection, newSelection, type);

            CollectionAssert.AreEqual(newSelection, result);
            AssertModifiersReceived(type, newSelection, oldSelection);
        }