@@ -52,10 +52,14 @@ public static TheoryData<object, Type, Func<object>, string, TagHelperOutputCont
52
52
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "Text" ) } ,
53
53
{ modelWithNull , typeof ( Model ) , ( ) => modelWithNull . Text , "Text" ,
54
54
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "Text" ) } ,
55
+ { modelWithNull , typeof ( Model ) , ( ) => modelWithNull . Text , "Text" ,
56
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "Text" ) } ,
55
57
{ modelWithText , typeof ( Model ) , ( ) => modelWithText . Text , "Text" ,
56
58
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "Text" ) } ,
57
59
{ modelWithText , typeof ( Model ) , ( ) => modelWithText . Text , "Text" ,
58
60
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "Text" ) } ,
61
+ { modelWithText , typeof ( Model ) , ( ) => modelWithText . Text , "Text" ,
62
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "Text" ) } ,
59
63
{ modelWithText , typeof ( Model ) , ( ) => modelWithNull . Text , "Text" ,
60
64
new TagHelperOutputContent ( string . Empty , "Hello World" , "Hello World" , "Text" ) } ,
61
65
{ modelWithText , typeof ( Model ) , ( ) => modelWithText . Text , "Text" ,
@@ -71,10 +75,14 @@ public static TheoryData<object, Type, Func<object>, string, TagHelperOutputCont
71
75
72
76
{ modelWithNull , typeof ( NestedModel ) , ( ) => modelWithNull . NestedModel . Text , "NestedModel.Text" ,
73
77
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "NestedModel_Text" ) } ,
78
+ { modelWithNull , typeof ( NestedModel ) , ( ) => modelWithNull . NestedModel . Text , "NestedModel.Text" ,
79
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "NestedModel_Text" ) } ,
74
80
{ modelWithNull , typeof ( NestedModel ) , ( ) => modelWithNull . NestedModel . Text , "NestedModel.Text" ,
75
81
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "NestedModel_Text" ) } ,
76
82
{ modelWithText , typeof ( NestedModel ) , ( ) => modelWithText . NestedModel . Text , "NestedModel.Text" ,
77
83
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "NestedModel_Text" ) } ,
84
+ { modelWithText , typeof ( NestedModel ) , ( ) => modelWithText . NestedModel . Text , "NestedModel.Text" ,
85
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "NestedModel_Text" ) } ,
78
86
{ modelWithText , typeof ( NestedModel ) , ( ) => modelWithText . NestedModel . Text , "NestedModel.Text" ,
79
87
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "NestedModel_Text" ) } ,
80
88
{ modelWithNull , typeof ( NestedModel ) , ( ) => modelWithNull . NestedModel . Text , "NestedModel.Text" ,
@@ -94,10 +102,14 @@ public static TheoryData<object, Type, Func<object>, string, TagHelperOutputCont
94
102
// into ModelExpressions. Will be fixed in https://github.com/aspnet/Mvc/issues/1345.
95
103
{ models , typeof ( Model ) , ( ) => models [ 0 ] . Text , "[0].Text" ,
96
104
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "z0__Text" ) } ,
105
+ { models , typeof ( Model ) , ( ) => models [ 0 ] . Text , "[0].Text" ,
106
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "z0__Text" ) } ,
97
107
{ models , typeof ( Model ) , ( ) => models [ 0 ] . Text , "[0].Text" ,
98
108
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "z0__Text" ) } ,
99
109
{ models , typeof ( Model ) , ( ) => models [ 1 ] . Text , "[1].Text" ,
100
110
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "z1__Text" ) } ,
111
+ { models , typeof ( Model ) , ( ) => models [ 1 ] . Text , "[1].Text" ,
112
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "z1__Text" ) } ,
101
113
{ models , typeof ( Model ) , ( ) => models [ 1 ] . Text , "[1].Text" ,
102
114
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "z1__Text" ) } ,
103
115
{ models , typeof ( Model ) , ( ) => models [ 0 ] . Text , "[0].Text" ,
@@ -115,10 +127,14 @@ public static TheoryData<object, Type, Func<object>, string, TagHelperOutputCont
115
127
116
128
{ models , typeof ( NestedModel ) , ( ) => models [ 0 ] . NestedModel . Text , "[0].NestedModel.Text" ,
117
129
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "z0__NestedModel_Text" ) } ,
130
+ { models , typeof ( NestedModel ) , ( ) => models [ 0 ] . NestedModel . Text , "[0].NestedModel.Text" ,
131
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "z0__NestedModel_Text" ) } ,
118
132
{ models , typeof ( NestedModel ) , ( ) => models [ 0 ] . NestedModel . Text , "[0].NestedModel.Text" ,
119
133
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "z0__NestedModel_Text" ) } ,
120
134
{ models , typeof ( NestedModel ) , ( ) => models [ 1 ] . NestedModel . Text , "[1].NestedModel.Text" ,
121
135
new TagHelperOutputContent ( Environment . NewLine , string . Empty , "Text" , "z1__NestedModel_Text" ) } ,
136
+ { models , typeof ( NestedModel ) , ( ) => models [ 1 ] . NestedModel . Text , "[1].NestedModel.Text" ,
137
+ new TagHelperOutputContent ( Environment . NewLine , "Hello World" , "Hello World" , "z1__NestedModel_Text" ) } ,
122
138
{ models , typeof ( NestedModel ) , ( ) => models [ 1 ] . NestedModel . Text , "[1].NestedModel.Text" ,
123
139
new TagHelperOutputContent ( string . Empty , Environment . NewLine , Environment . NewLine , "z1__NestedModel_Text" ) } ,
124
140
{ models , typeof ( NestedModel ) , ( ) => models [ 0 ] . NestedModel . Text , "[0].NestedModel.Text" ,
0 commit comments