public void LogsIncludeComments()
        {
            ITargetClass proxy = GetProxy();

            proxy.Method1();

            var logs = string.Join(Environment.NewLine, logTarget.Logs);

            Assert.That(logs, Does.Contain("# Call Section"));
        }
        public void LogsIncludeObjectId()
        {
            ITargetClass proxy = GetProxy();

            proxy.Method1();

            var logs = string.Join(Environment.NewLine, logTarget.Logs);

            Assert.That(logs, Does.Contain("(id=17"));
        }
        public void MultipleCalls()
        {
            ITargetClass proxy3 = GetProxy();
            ITargetClass proxy2 = GetProxy(proxy3);
            ITargetClass proxy1 = GetProxy(proxy2);

            proxy1.Method1();

            CollectionAssert.AreEqual(new[]
            {
                "VS -> YetiCommon.Tests.CastleAspects.TargetClass: " +
                "ITargetClass.Method1",
                "YetiCommon.Tests.CastleAspects.TargetClass -> " +
                "YetiCommon.Tests.CastleAspects.TargetClass: " +
                "ITargetClass.Method2 [color=\"red\"]",
                "YetiCommon.Tests.CastleAspects.TargetClass -> " +
                "YetiCommon.Tests.CastleAspects.TargetClass: " +
                "ITargetClass.Method3 [color=\"red\"]",
            }, GetNormalizedLogs());
        }