Aspects.Logging.Tests.ExcludeTests.WhenAppliedToClassWithExcludePropertieGettersFlagShouldNotLogProprietyGetters C# (CSharp) Method

WhenAppliedToClassWithExcludePropertieGettersFlagShouldNotLogProprietyGetters() private method

        public void WhenAppliedToClassWithExcludePropertieGettersFlagShouldNotLogProprietyGetters()
        {
            // act
            PersonExcludePropertyGetters personExcludePropertyGetters = new PersonExcludePropertyGetters
            {
                Name = Guid.NewGuid().ToString()
            };
            personExcludePropertyGetters.Name.Should().NotBeNullOrWhiteSpace();

            // assert
            _logger.DebugCallCount.Should()
                .Be(6, "because we only hit the Entry, Success and Exit methods for the instance constructor and property setter");
        }