forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPropertyNameTests.cs
62 lines (57 loc) · 2.97 KB
/
PropertyNameTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Tests;
namespace System.Text.Json.SourceGeneration.Tests
{
public sealed partial class PropertyNameTests_Metadata : PropertyNameTests
{
public PropertyNameTests_Metadata()
: base(new StringSerializerWrapper(PropertyNameTestsContext_Metadata.Default))
{
}
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Metadata)]
[JsonSerializable(typeof(Dictionary<string, OverridePropertyNameDesignTime_TestClass>))]
[JsonSerializable(typeof(Dictionary<string, int>))]
[JsonSerializable(typeof(int))]
[JsonSerializable(typeof(ClassWithEscapablePropertyName))]
[JsonSerializable(typeof(ClassWithSpecialCharacters))]
[JsonSerializable(typeof(ClassWithPropertyNamePermutations))]
[JsonSerializable(typeof(ClassWithUnicodeProperty))]
[JsonSerializable(typeof(DuplicatePropertyNameDesignTime_TestClass))]
[JsonSerializable(typeof(EmptyPropertyName_TestClass))]
[JsonSerializable(typeof(IntPropertyNamesDifferentByCaseOnly_TestClass))]
[JsonSerializable(typeof(NullPropertyName_TestClass))]
[JsonSerializable(typeof(ObjectPropertyNamesDifferentByCaseOnly_TestClass))]
[JsonSerializable(typeof(OverridePropertyNameDesignTime_TestClass))]
[JsonSerializable(typeof(SimpleTestClass))]
internal sealed partial class PropertyNameTestsContext_Metadata : JsonSerializerContext
{
}
}
public sealed partial class PropertyNameTests_Default : PropertyNameTests
{
public PropertyNameTests_Default()
: base(new StringSerializerWrapper(PropertyNameTestsContext_Default.Default))
{
}
[JsonSerializable(typeof(Dictionary<string, OverridePropertyNameDesignTime_TestClass>))]
[JsonSerializable(typeof(Dictionary<string, int>))]
[JsonSerializable(typeof(int))]
[JsonSerializable(typeof(ClassWithEscapablePropertyName))]
[JsonSerializable(typeof(ClassWithSpecialCharacters))]
[JsonSerializable(typeof(ClassWithPropertyNamePermutations))]
[JsonSerializable(typeof(ClassWithUnicodeProperty))]
[JsonSerializable(typeof(DuplicatePropertyNameDesignTime_TestClass))]
[JsonSerializable(typeof(EmptyPropertyName_TestClass))]
[JsonSerializable(typeof(IntPropertyNamesDifferentByCaseOnly_TestClass))]
[JsonSerializable(typeof(NullPropertyName_TestClass))]
[JsonSerializable(typeof(ObjectPropertyNamesDifferentByCaseOnly_TestClass))]
[JsonSerializable(typeof(OverridePropertyNameDesignTime_TestClass))]
[JsonSerializable(typeof(SimpleTestClass))]
internal sealed partial class PropertyNameTestsContext_Default : JsonSerializerContext
{
}
}
}