Esempio n. 1
0
        public void CanAutoStartBeEnabled_ReturnsEnableStatus(bool canBeEnabled)
        {
            A.CallTo(() => ConnectorService.CanBeEnabled(AutoStartEntry)).Returns(canBeEnabled);
            var ret = Service.CanAutoStartBeEnabled(AutoStartEntry);

            Assert.AreEqual(canBeEnabled, ret);
            A.CallTo(() => ConnectorService.CanBeEnabled(AutoStartEntry)).MustHaveHappenedOnceExactly();
        }