Ejemplo n.º 1
0
        public void CanRemoveEntityComponentsByType()
        {
            // Arrange
            var entity = new TWEntity("test entity");

            entity.AddComponent(new TestComponent("test component 1"));
            entity.AddComponent(new TestComponent("test component 2"));
            // Act
            entity.RemoveComponentsByType <TestComponent>();
            // Assert
            entity.Components.Should().BeEmpty();
        }