public void controller_initialized_with_null_collectable_base_object_fails()
        {
            ICollectableBase nullBase = null;

            controller = new CollectableBaseController(nullBase);

            Assert.IsFalse(true, "Expected the test to fail when initialized with a null object");
        }
        public void controller_collectabletype_returns_initial_collectable_base_type()
        {
            Type             objType         = typeof(ICollectableBase);
            ICollectableBase collectableBase = mockCollectableBase.Object;

            mockCollectableBase.Setup(b => b.CollectableType).Returns(objType);

            controller = new CollectableBaseController(collectableBase);
            Type objTestType = controller.CollectableType;

            Assert.AreEqual(objType, objTestType);
        }
        public void controller_initialized_with_collectable_base_object_returns_controller_instance()
        {
            try
            {
                ICollectableBase collectableBase = mockCollectableBase.Object;

                controller = new CollectableBaseController(collectableBase);

                Assert.IsNotNull(controller);
            }
            catch
            {
                Assert.IsFalse(true, "Test should not fail when initialized with an object");
            }
        }
 public void InitializeTest()
 {
     // setup the controller using a mock instance of a collectable base object
     mockCollectableBase = new Mock <ICollectableBase>();
     controller          = new CollectableBaseController(mockCollectableBase.Object);
 }