File tree 3 files changed +27
-16
lines changed
CodeGeneration/Nest.Litterateur
Tests/ClientConcepts/HighLevel/Inferrence
3 files changed +27
-16
lines changed Original file line number Diff line number Diff line change 4129
4129
"System.Reflection.Metadata/1.1.0" : {
4130
4130
"type" : " package" ,
4131
4131
"serviceable" : true ,
4132
- "sha512" : " RLIE4sSt2zngMLuqM6YmxBH99mTumtT4DNZE4+msfEaInUP5iCLQT+BHPl+2cjSAP1pdALyAjLB8RtCB+WGGWQ ==" ,
4132
+ "sha512" : " a8VsRm/B0Ik1o5FumSMWmpwbG7cvIIajAYhzTTy9VB9XItByJDQHGZkQTIAdsvVJ6MI5O3uH/lb0izgQDlDIWA ==" ,
4133
4133
"files" : [
4134
4134
" lib/dotnet5.2/System.Reflection.Metadata.dll" ,
4135
4135
" lib/dotnet5.2/System.Reflection.Metadata.xml" ,
Original file line number Diff line number Diff line change @@ -332,20 +332,6 @@ public void PrecedenceIsAsExpected()
332
332
DefaultFieldNameInferrer = "shouting much?"
333
333
} ) ;
334
334
335
- }
336
-
337
- public class PropertyNames
338
- {
339
- [ U ] public void PropertyNamesAreResolvedToLastToken ( )
340
- {
341
- Expression < Func < Project , object > > expression = p => p . Name . Suffix ( "raw" ) ;
342
- Expect ( "raw" ) . WhenSerializing < PropertyName > ( expression ) ;
343
- }
344
-
345
- [ U ] public void StringsContainingDotsIsAnException ( )
346
- {
347
- Assert . Throws < ArgumentException > ( ( ) => Expect ( "exception!" ) . WhenSerializing < PropertyName > ( "name.raw" ) ) ;
348
- }
349
- }
335
+ }
350
336
}
351
337
}
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Linq . Expressions ;
3
+ using Nest ;
4
+ using Tests . Framework ;
5
+ using Tests . Framework . MockData ;
6
+ using static Tests . Framework . RoundTripper ;
7
+ using Xunit ;
8
+
9
+ namespace Tests . ClientConcepts . HighLevel . Inferrence . PropertyNames
10
+ {
11
+
12
+ public class PropertyNames
13
+ {
14
+ [ U ] public void PropertyNamesAreResolvedToLastToken ( )
15
+ {
16
+ Expression < Func < Project , object > > expression = p => p . Name . Suffix ( "raw" ) ;
17
+ Expect ( "raw" ) . WhenSerializing < PropertyName > ( expression ) ;
18
+ }
19
+
20
+ [ U ] public void StringsContainingDotsIsAnException ( )
21
+ {
22
+ Assert . Throws < ArgumentException > ( ( ) => Expect ( "exception!" ) . WhenSerializing < PropertyName > ( "name.raw" ) ) ;
23
+ }
24
+ }
25
+ }
You can’t perform that action at this time.
0 commit comments