예제 #1
0
        public void Given_TraceWriter_Property_ShouldNotThrow_Exception()
        {
            var logger = new FakeTraceWriter();

            var result = LoggerTypeValidator.ValidateLoggerType(logger);

            result.Should().BeTrue();
        }
예제 #2
0
        public void Given_ILogger_Property_ShouldNotThrow_Exception()
        {
            var logger = new Mock <ILogger>();

            var result = LoggerTypeValidator.ValidateLoggerType(logger.Object);

            result.Should().BeTrue();
        }
예제 #3
0
        public void Given_InvalidType_ValidateLoggerType_ShouldReturn_False()
        {
            var logger = new FakeClass();

            var result = LoggerTypeValidator.ValidateLoggerType(logger);

            result.Should().BeFalse();
        }