public static void MiscParmsStatic(int intParm, SomeTestClass classParm, ref string refString, out bool outBool) { Proxy.CurrentLog.LogInformationData("Static method logging test", DateTime.UtcNow); refString = string.Format("{0} {1}", intParm, refString); outBool = true; }
public void TestStaticLogging() { Assert.IsNull(Proxy.CurrentLog); const int intParm = 456; this.IntProp = intParm; string refString = DateTime.Now.Ticks.ToString(CultureInfo.InvariantCulture); bool outBool = false; SomeTestClass obj = new SomeTestClass(); // Example of calling static void method. AOP.Invoke(TestAspects, () => SomeTestClass.MiscParmsStatic(this.IntProp, obj, ref refString, out outBool)); Assert.IsTrue(outBool); }