コード例 #1
0
        public void WillNotWriteIfTheOnlyLogFlagIsSet()
        {
            var msg = Substitute.For <IMessage>();

            msg.OnlyLog.Returns(true);
            _sut.Write(msg);
            _mockWriter.DidNotReceiveWithAnyArgs().Write(msg);
        }