You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling CreateDynamicInstance for a table with a single Field and Value row doesn't create the ExpandoObject as expected.
To reproduce, add the following scenario in .\Specs\DynamicInstancesFromTable.feature:
Scenario: Create dynamic instance from table with a single Field and Value
When I create a dynamic instance from this table
| Field | Value |
| Name | Marcus |
Then the Name property should equal 'Marcus'
Result:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : 'System.Dynamic.ExpandoObject' does not contain a definition for 'Name'
Instead of the ExpandoObject getting created with one property Name with a value of Marcus, the ExpandoObject is created with two properties, Field and Value, with values Name and Marcus respectively.
Thank you.
The text was updated successfully, but these errors were encountered:
Calling
CreateDynamicInstance
for a table with a singleField
andValue
row doesn't create theExpandoObject
as expected.To reproduce, add the following scenario in
.\Specs\DynamicInstancesFromTable.feature
:Result:
Instead of the
ExpandoObject
getting created with one propertyName
with a value ofMarcus
, theExpandoObject
is created with two properties,Field
andValue
, with valuesName
andMarcus
respectively.Thank you.
The text was updated successfully, but these errors were encountered: