Example #1
0
        public void SetUp()
        {
            instance = new NullInstance();
            family = MockRepository.GenerateMock<IFamily>();

            instanceRef = new InstanceRef(instance, family);
        }
        public InstanceRefTester()
        {
            instance = new NullInstance();
            familyMock = Substitute.For<IFamily>();

            instanceRef = new InstanceRef(instance, familyMock);
        }
 public void CreateFamily()
 {
     _game = new Game<ComponentMatchingFamily>();
     _family = new ComponentMatchingFamily();
     _family.Setup(_game, typeof(MockNode));
 }
 public void ClearFamily()
 {
     _family = null;
     _game = null;
 }