Ejemplo n.º 1
0
        public void EntityContainsInitialComponents()
        {
            var entity = new Entity.EngineEntity(0, new IComponent[] {new SimpleComponent(), new OtherSimpleComponent()},
                Mock.Of<IEventDispatcher>());

            entity.HasComponent<ISimpleComponent>().ShouldBeTrue();
            entity.HasComponent<IOtherSimpleComponent>().ShouldBeTrue();
            entity.HasComponent<ISimpleAsyncComponent>().ShouldBeFalse();
        }