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(); }