public void SingleProxyReturned() { ITargetClass proxy2 = GetProxy(); ITargetClass proxy1 = GetProxy(proxy2); ITargetClass ignored = new TargetClass(); proxy1.TryGetSingle(out ignored); CollectionAssert.AreEqual(new[] { "VS -> YetiCommon.Tests.CastleAspects.TargetClass: " + "ITargetClass.TryGetSingle", "YetiCommon.Tests.CastleAspects.TargetClass --> VS: " + "YetiCommon.Tests.CastleAspects.TargetClass", }, GetNormalizedLogs()); }
public void ReturnsNonProxiedValue() { ITargetClass undecoratedTgt = new TargetClass(); ITargetClass proxy = GetProxy(undecoratedTgt); ITargetClass[] ignoredArr; string dummyStr; proxy.TryGetArrayAndString(out ignoredArr, out dummyStr); CollectionAssert.AreEqual(new[] { "VS -> YetiCommon.Tests.CastleAspects.TargetClass: " + "ITargetClass.TryGetArrayAndString", "YetiCommon.Tests.CastleAspects.TargetClass --> " + "VS: \\[{YetiCommon.Tests.CastleAspects.TargetClass}, " + "{YetiCommon.Tests.CastleAspects.TargetClass}], " + "{System.String} {value=dummy}", }, GetNormalizedLogs()); }