Skip to content

Commit 79892bb

Browse files
committed
.
1 parent efaddcd commit 79892bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/System.Linq.Dynamic.Core.Tests/Parser/ExpressionParserTests.MemberAccess.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public void ParseMemberAccess_DictionaryIndex_On_Dynamic()
2626
[Theory]
2727
[InlineData("Prop", "TestProp")]
2828
[InlineData("Field", "TestField")]
29+
[InlineData("Constant", "ConstantField")]
2930
public void Parse_StaticPropertyOrField_In_StaticClass1(string name, string value)
3031
{
3132
// Arrange
@@ -41,6 +42,7 @@ public void Parse_StaticPropertyOrField_In_StaticClass1(string name, string valu
4142
[Theory]
4243
[InlineData("Prop", "TestProp")]
4344
[InlineData("Field", "TestField")]
45+
[InlineData("Constant", "ConstantField")]
4446
public void Parse_StaticPropertyOrField_In_NonStaticClass1(string name, string value)
4547
{
4648
// Arrange
@@ -56,6 +58,7 @@ public void Parse_StaticPropertyOrField_In_NonStaticClass1(string name, string v
5658
[Theory]
5759
[InlineData("Prop", "TestProp")]
5860
[InlineData("Field", "TestField")]
61+
[InlineData("Constant", "ConstantField")]
5962
public void Parse_StaticPropertyOrField_In_NonStaticClass2(string name, string value)
6063
{
6164
// Arrange
@@ -75,6 +78,8 @@ public class StaticClassExample
7578
public static string Prop { get; set; } = "TestProp";
7679

7780
public static string Field = "TestField";
81+
82+
public const string Constant = "ConstantField";
7883
}
7984

8085
[DynamicLinqType]
@@ -83,6 +88,8 @@ public class NonStaticClassExample
8388
public static string Prop { get; set; } = "TestProp";
8489

8590
public static string Field = "TestField";
91+
92+
public const string Constant = "ConstantField";
8693
}
8794

8895
public class ProductDynamic

0 commit comments

Comments
 (0)