コード例 #1
0
        public void Condition(
            int scannedCount,
            bool expected)
        {
            var mockContext = new Mock <IContext>();

            mockContext.Setup(x => x.ScannedCount).Returns(scannedCount);
            BaseBehavior.Context = mockContext.Object;
            Assert.AreEqual(expected, _behaviour.Condition());
        }