private WhenPassingADisabledConfigShouldReturnFalse ( ) : void | ||
return | void |
public void WhenPassingADisabledConfigShouldReturnFalse()
{
ConfigFileConfigurationProvider sut = new ConfigFileConfigurationProvider();
Mock<IConfigFileSource> mock = new Mock<IConfigFileSource>();
mock.Setup(source => source.IsEnabled).Returns(false);
sut.ConfigFileSource = mock.Object;
LogAttribute attribute = new LogAttribute();
bool shouldLog = sut.ShouldLog(attribute);
shouldLog.Should().Be(false);
}