Skip to content

Commit

Permalink
added commented out test for patterns with MemberAccessExpressions
Browse files Browse the repository at this point in the history
this test need to check at least:
- the call to the property get is through a 'callvirt'
- the stack frame is setup correctly
  • Loading branch information
adrianoc committed Apr 13, 2024
1 parent 301aa9d commit 6189f4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cecilifier.Core.Tests/Tests/Unit/PatternExpressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,13 @@ private static IEnumerable RecursivePatternsTestScenarios()
@"il_M_7.Append\(nop_12\);\s+" +
@"\1Stloc, l_r_9\);")
{ TestName = "Multiple Properties" };

// Issue #281
// yield return new TestCaseData(
// "void M(object o) { var r = o is System.Uri { Host.Length: 10 }; }",
// "TODO: //DEFINE EXPECTATION")
// {
// TestName = "Property (MemberAccessExpression)"
// };
}
}

0 comments on commit 6189f4f

Please sign in to comment.