Esempio n. 1
0
        public void CanAutoStartBeDisabled_ReturnsDisableStatus(bool canBeDisabled)
        {
            A.CallTo(() => ConnectorService.CanBeDisabled(AutoStartEntry)).Returns(canBeDisabled);
            var ret = Service.CanAutoStartBeDisabled(AutoStartEntry);

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