public void Redo_AddSingleObject_ShouldAddObjectToCollection()
        {
            // Arrange
            var collection = Collection;

            Assert.Empty(collection);
            var obj       = CreateLayoutObject(5, 5, 2, 2);
            var operation = new AddObjectsOperation <LayoutObject>()
            {
                Collection = collection,
                Objects    = new List <LayoutObject>()
                {
                    obj
                }
            };

            // Act
            operation.Redo();

            // Assert
            Assert.Single(collection);
        }
        public void Redo_AddMultipleObjects_ShouldAddObjectsToCollection()
        {
            // Arrange
            var collection = Collection;

            Assert.Empty(collection);
            var obj1      = CreateLayoutObject(5, 5, 2, 2);
            var obj2      = CreateLayoutObject(0, 0, 2, 2);
            var operation = new AddObjectsOperation <LayoutObject>()
            {
                Collection = collection,
                Objects    = new List <LayoutObject>()
                {
                    obj1,
                    obj2
                }
            };

            // Act
            operation.Redo();

            // Assert
            Assert.Equal(2, collection.Count);
        }