Exemple #1
0
        public void CanAutoStartBeAdded_ReturnsAddStatus(bool canBeAdded)
        {
            A.CallTo(() => ConnectorService.CanBeAdded(AutoStartEntry)).Returns(canBeAdded);
            var ret = Service.CanAutoStartBeAdded(AutoStartEntry);

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