public void IfComponentAddedThatMakesThisEntityMatch_AddedToNodes()
        {
            var family = new ComponentMatchingFamily <Node <MockComponentA> >();

            var entityA = new MockEntity <MockComponentA>();

            family.ComponentAdded(entityA, typeof(MockComponentA));

            Assert.AreEqual(family.Nodes.Count(), 1);
            Assert.AreEqual(family.Nodes.First().Component1, entityA.Components[0]);
        }
        public void IfComponentAddedToEntityThatAlreadyInList_NothingHappens()
        {
            var family = new ComponentMatchingFamily <Node <MockComponentA> >();

            var entityA = new MockEntity <MockComponentA>();

            family.EntityAdded(entityA);
            family.ComponentAdded(entityA, typeof(MockComponentB));

            Assert.AreEqual(family.Nodes.Count(), 1);
            Assert.AreEqual(family.Nodes.First().Component1, entityA.Components[0]);
        }