Aspects.Logging.Tests.LoggingAspectFullLoggingTests.WhenTestingAFullTestcaseClassWithDebugDisplayShouldLogEverythingAndTheObject C# (CSharp) Method

WhenTestingAFullTestcaseClassWithDebugDisplayShouldLogEverythingAndTheObject() private method

        public void WhenTestingAFullTestcaseClassWithDebugDisplayShouldLogEverythingAndTheObject()
        {
            MockLogger logger = new MockLogger();
            LogAttribute.Logger = logger;

            FullTestClass testClass = CreateTestClass();
            testClass.Value.Should().NotBeNullOrWhiteSpace();

            FullTestClass.EmbeddedMethod();

            logger.DebugCallCount.Should().Be(24, "because we call the Entry, Exit and Success methods for the constructor, property and methods, even private method");
        }