public void Contains_Returns_False_If_System_Is_Not_Added()
        {
            var registery = new EntityRegistery();
            var system    = new TestEntitySystem();

            Assert.False(registery.Contains(system));
        }
        public void Contains_Returns_True_If_System_Is_Added()
        {
            var registery = new EntityRegistery();
            var system    = new TestEntitySystem();

            registery.Add(system);

            Assert.True(registery.Contains(system));
        }
        public void Get_Returns_System_If_added()
        {
            var registery = new EntityRegistery();
            var system    = new TestEntitySystem();

            registery.Add(system);

            var result = registery.Get <TestEntitySystem>();

            Assert.Equal(system, result);
        }
        public void Add_Set_Registery_On_System()
        {
            var registery = new EntityRegistery();
            var system    = new TestEntitySystem();

            var result = registery.Add(system);


            Assert.True(result);
            Assert.Equal(registery, system.Registery);
        }
        public void Add_returns_false_if_already_added()
        {
            var registery = new EntityRegistery();
            var system    = new TestEntitySystem();

            var result  = registery.Add(system);
            var result2 = registery.Add(system);

            Assert.True(result);
            Assert.False(result2);
        }