Aspects.Logging.Tests.Configuration.Concrete.ConfigFileConfigurationProviderTests.WhenPassingAnEnabledConfigShouldReturnTrue C# (CSharp) Method

WhenPassingAnEnabledConfigShouldReturnTrue() private method

private WhenPassingAnEnabledConfigShouldReturnTrue ( ) : void
return void
        public void WhenPassingAnEnabledConfigShouldReturnTrue()
        {
            ConfigFileConfigurationProvider sut = new ConfigFileConfigurationProvider();
            Mock<IConfigFileSource> mock = new Mock<IConfigFileSource>();
            mock.Setup(source => source.IsEnabled).Returns(true);
            mock.Setup(source => source.Tags).Returns(new TagCollection());
            sut.ConfigFileSource = mock.Object;

            LogAttribute attribute = new LogAttribute();

            bool shouldLog = sut.ShouldLog(attribute);

            shouldLog.Should().Be(true);
        }