Aspectacular.Test.AspectacularTest.TestNonMethodExpressionInterceptionFailure C# (CSharp) Method

TestNonMethodExpressionInterceptionFailure() private method

private TestNonMethodExpressionInterceptionFailure ( ) : void
return void
        public void TestNonMethodExpressionInterceptionFailure()
        {
            var someCls = new SomeTestClass();

            // Example of improper calling instance method returning string, by using a non-method-call operator.
            string actual = someCls.GetProxy(TestAspects).Invoke(instance => instance.GetDateString("whatevs") + "123");
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            actual.ToString(CultureInfo.InvariantCulture);
        }