Skip to content

Commit 3cc83af

Browse files
committed
Move property name tests to separate folder
1 parent 4ede4c6 commit 3cc83af

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

Diff for: src/CodeGeneration/Nest.Litterateur/project.lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4129,7 +4129,7 @@
41294129
"System.Reflection.Metadata/1.1.0": {
41304130
"type": "package",
41314131
"serviceable": true,
4132-
"sha512": "RLIE4sSt2zngMLuqM6YmxBH99mTumtT4DNZE4+msfEaInUP5iCLQT+BHPl+2cjSAP1pdALyAjLB8RtCB+WGGWQ==",
4132+
"sha512": "a8VsRm/B0Ik1o5FumSMWmpwbG7cvIIajAYhzTTy9VB9XItByJDQHGZkQTIAdsvVJ6MI5O3uH/lb0izgQDlDIWA==",
41334133
"files": [
41344134
"lib/dotnet5.2/System.Reflection.Metadata.dll",
41354135
"lib/dotnet5.2/System.Reflection.Metadata.xml",

Diff for: src/Tests/ClientConcepts/HighLevel/Inferrence/FieldNames/FieldInference.doc.cs

+1-15
Original file line numberDiff line numberDiff line change
@@ -332,20 +332,6 @@ public void PrecedenceIsAsExpected()
332332
DefaultFieldNameInferrer = "shouting much?"
333333
});
334334

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+
}
350336
}
351337
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
}

0 commit comments

Comments
 (0)