Exemple #1
0
        public void SetUp()
        {
            pureDataFacadeMock_         = Substitute.For <IPureDataFacade>();
            controllerStateFactoryMock_ = Substitute.For <IControllerStateFactory>();
            controllerStateFactoryMock_.CreateCarrierState(pureDataFacadeMock_).Returns(carrierStateMock_);
            controllerStateFactoryMock_.CreateModulatorState(pureDataFacadeMock_).Returns(modulatorStateMock_);

            stateAssigner_ = new StateAssigner(pureDataFacadeMock_, controllerStateFactoryMock_);
        }
Exemple #2
0
        public void CreateModulatorState()
        {
            var modulatorState = ControllerStateFactory_.CreateModulatorState(Arg.Any <IPureDataFacade>());

            Assert.True(modulatorState != null);
            Assert.DoesNotThrow(() =>
            {
                var unused = (ModulatorState)modulatorState;
            });
        }