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

WhenPassingAnEnabledConfigWithANominalTagShouldReturnTrue() private method

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

            LogAttribute attribute = new LogAttribute();

            bool shouldLog = sut.ShouldLog(attribute);

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