@@ -29,7 +29,6 @@ public static string GenericArrayExpressionBodyAssertion(string assertion) => Ge
2929 . AppendLine ( " public bool BooleanProperty { get; set; }" )
3030 . AppendLine ( " public string Message { get; set; }" )
3131 . AppendLine ( " }" )
32- . AppendMainMethod ( )
3332 . AppendLine ( "}" )
3433 . ToString ( ) ;
3534
@@ -57,7 +56,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
5756 . AppendLine ( " public bool BooleanProperty { get; set; }" )
5857 . AppendLine ( " public string Message { get; set; }" )
5958 . AppendLine ( " }" )
60- . AppendMainMethod ( )
6159 . AppendLine ( "}" )
6260 . ToString ( ) ;
6361
@@ -75,7 +73,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
7573 . AppendLine ( $ " { assertion } ")
7674 . AppendLine ( " }" )
7775 . AppendLine ( " }" )
78- . AppendMainMethod ( )
7976 . AppendLine ( "}" )
8077 . ToString ( ) ;
8178
@@ -98,7 +95,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
9895 . AppendLine ( " {" )
9996 . AppendLine ( " public bool BooleanProperty { get; set; }" )
10097 . AppendLine ( " }" )
101- . AppendMainMethod ( )
10298 . AppendLine ( "}" )
10399 . ToString ( ) ;
104100
@@ -115,7 +111,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
115111 . AppendLine ( $ " { assertion } ")
116112 . AppendLine ( " }" )
117113 . AppendLine ( " }" )
118- . AppendMainMethod ( )
119114 . AppendLine ( "}" )
120115 . ToString ( ) ;
121116
@@ -132,7 +127,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
132127 . AppendLine ( $ " { assertion } ")
133128 . AppendLine ( " }" )
134129 . AppendLine ( " }" )
135- . AppendMainMethod ( )
136130 . AppendLine ( "}" )
137131 . ToString ( ) ;
138132
@@ -148,7 +142,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
148142 . AppendLine ( $ " { assertion } ")
149143 . AppendLine ( " }" )
150144 . AppendLine ( " }" )
151- . AppendMainMethod ( )
152145 . AppendLine ( "}" )
153146 . ToString ( ) ;
154147
@@ -164,7 +157,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
164157 . AppendLine ( $ " { assertion } ")
165158 . AppendLine ( " }" )
166159 . AppendLine ( " }" )
167- . AppendMainMethod ( )
168160 . AppendLine ( "}" )
169161 . ToString ( ) ;
170162
@@ -182,7 +174,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
182174 . AppendLine ( " }" )
183175 . AppendLine ( " async void AsyncVoidMethod() { await Task.CompletedTask; }" )
184176 . AppendLine ( " }" )
185- . AppendMainMethod ( )
186177 . AppendLine ( "}" )
187178 . ToString ( ) ;
188179
@@ -199,7 +190,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
199190 . AppendLine ( $ " { statement } ")
200191 . AppendLine ( " }" )
201192 . AppendLine ( " }" )
202- . AppendMainMethod ( )
203193 . AppendLine ( "}" )
204194 . ToString ( ) ;
205195
@@ -218,7 +208,6 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
218208 . AppendLine ( $ " { assertion } ")
219209 . AppendLine ( " }" )
220210 . AppendLine ( " }" )
221- . AppendMainMethod ( )
222211 . AppendLine ( "}" )
223212 . ToString ( ) ;
224213
@@ -240,16 +229,7 @@ public static string GenericIListExpressionBodyAssertion(string assertion) => Ge
240229 . AppendLine ( $ " { assertion } ")
241230 . AppendLine ( " }" )
242231 . AppendLine ( " }" )
243- . AppendMainMethod ( )
244232 . AppendLine ( "}" )
245233 . ToString ( ) ;
246-
247- public static StringBuilder AppendMainMethod ( this StringBuilder builder ) => builder
248- . AppendLine ( " class Program" )
249- . AppendLine ( " {" )
250- . AppendLine ( " public static void Main()" )
251- . AppendLine ( " {" )
252- . AppendLine ( " }" )
253- . AppendLine ( " }" ) ;
254234 }
255235}
0 commit comments