コード例 #1
0
        public void CurrentRoverReturnsAnInstanceOfTypeIRover()
        {
            _missionControl = new MissionControl(_mockRoverManager, null);
            _mockRoverManager.Stub(x => x.CurrentRover()).Return(new LandRover());

            Assert.IsInstanceOf <IRover>(_missionControl.CurrentRover());
        }