ComponentTypeTests.cs 546 B

1234567891011121314151617
  1. namespace MonoGame.Extended.ECS.Tests
  2. {
  3. //public class ComponentTypeTests
  4. //{
  5. // [Fact]
  6. // public void CreateComponentType()
  7. // {
  8. // var type = typeof(Sprite);
  9. // var componentType = new ComponentType(type, 3);
  10. // Assert.Same(type, componentType.Type);
  11. // Assert.Equal(3, componentType.Id);
  12. // Assert.Equal(new ComponentType(typeof(Sprite), 3), componentType);
  13. // Assert.Equal(componentType.Id, componentType.GetHashCode());
  14. // }
  15. //}
  16. }