Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Bring tests from fa710e6 (rel/1.0.3) into dev
Browse files Browse the repository at this point in the history
- relates to #5595 which was a 1.0.x-only problem
  • Loading branch information
dougbu committed Feb 11, 2017
1 parent 4bddb5f commit a5c7a7e
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static TheoryData<Expression, string> ExpressionAndTexts
var Model = new TestModel();
var key = "TestModel";
var myModels = new List<TestModel>();
var models = new List<TestModel>();
var modelTest = new TestModel();
var modelType = typeof(TestModel);

return new TheoryData<Expression, string>
{
Expand Down Expand Up @@ -57,6 +60,18 @@ public static TheoryData<Expression, string> ExpressionAndTexts
(Expression<Func<TestModel, TestModel>>)(m => Model),
string.Empty
},
{
(Expression<Func<TestModel, int>>)(model => models[0].SelectedCategory.CategoryId),
"models[0].SelectedCategory.CategoryId"
},
{
(Expression<Func<TestModel, string>>)(model => modelTest.Name),
"modelTest.Name"
},
{
(Expression<Func<TestModel, Type>>)(model => modelType),
"modelType"
},
{
(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory),
"[2].SelectedCategory"
Expand Down

0 comments on commit a5c7a7e

Please sign in to comment.