Skip to content

Commit 9280ae9

Browse files
committed
refine test
1 parent 4b75fe1 commit 9280ae9

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/InputLibraryVisitorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void PreVisitsMethods()
4040
var param = new InputParameter("param", "name", "desc",
4141
new InputLiteralType(new InputPrimitiveType(InputPrimitiveTypeKind.String, "foo", "bar"), "bar"),
4242
RequestLocation.Header, null, InputOperationParameterKind.Method, true, false, true, false, false,
43-
false, false, null, null, []);
43+
false, false, null, null);
4444
var inputOperation = new InputOperation("testoperation", "name", "desc", null, null, [param], new[] { new OperationResponse([200], new InputLiteralType(InputPrimitiveType.Any, "foo"), BodyMediaType.Json, [], false, []) },
4545
"GET", BodyMediaType.Json, "http://example.com", "baz", null, null, true, null, null, true, true, "foo");
4646
var inputClient = new InputClient(

packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public static IEnumerable<TestCaseData> SubClientTestCases
405405
{
406406
get
407407
{
408-
yield return new TestCaseData(new InputClient(TestClientName, "TestClient description", [], [], null, []), true);
408+
yield return new TestCaseData(new InputClient(TestClientName, "TestClient description", [], [], null), true);
409409
yield return new TestCaseData(_animalClient, true);
410410
yield return new TestCaseData(_dogClient, true);
411411
yield return new TestCaseData(_huskyClient, false);

packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/MrwSerializationTypeDefinitions/JsonModelCoreTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76
using Microsoft.Generator.CSharp.ClientModel.Providers;

packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/Providers/EnumProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using System.Linq;
5+
using System.Text;
46
using Microsoft.Generator.CSharp.Expressions;
57
using Microsoft.Generator.CSharp.Input;
68
using Microsoft.Generator.CSharp.Primitives;

packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/Providers/ModelFactoryProviderTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ private static InputModelType[] GetTestModels()
9393
"InternalModel",
9494
InputModelTypeUsage.Input | InputModelTypeUsage.Output,
9595
[
96-
new InputModelProperty("StringProp", "stringProp", "StringProp", StringInputType, false, false, false, [], null),
97-
new InputModelProperty("ListProp", "listProp", "ListProp", new InputArrayType("list", "list", StringInputType), false, false, false, [], null),
98-
new InputModelProperty("DictProp", "DictProp", "DictProp", new InputDictionaryType("dict", StringInputType, StringInputType), false, false, false, [], null)
96+
new InputModelProperty("StringProp", "stringProp", "StringProp", StringInputType, false, false, false, null),
97+
new InputModelProperty("ListProp", "listProp", "ListProp", new InputArrayType("list", "list", StringInputType), false, false, false, null),
98+
new InputModelProperty("DictProp", "DictProp", "DictProp", new InputDictionaryType("dict", StringInputType, StringInputType), false, false, false, null)
9999
],
100100
null,
101101
[],
@@ -112,9 +112,9 @@ private static InputModelType[] GetTestModels()
112112
"PublicModel1",
113113
InputModelTypeUsage.Input | InputModelTypeUsage.Output,
114114
[
115-
new InputModelProperty("StringProp", "stringProp", "StringProp", StringInputType, false, false, false, [], null),
116-
new InputModelProperty("ListProp", "listProp", "ListProp", new InputArrayType("list", "list", StringInputType), false, false, false, [], null),
117-
new InputModelProperty("DictProp", "DictProp", "DictProp", new InputDictionaryType("dict", StringInputType, StringInputType), false, false, false, [], null)
115+
new InputModelProperty("StringProp", "stringProp", "StringProp", StringInputType, false, false, false, null),
116+
new InputModelProperty("ListProp", "listProp", "ListProp", new InputArrayType("list", "list", StringInputType), false, false, false, null),
117+
new InputModelProperty("DictProp", "DictProp", "DictProp", new InputDictionaryType("dict", StringInputType, StringInputType), false, false, false, null)
118118
],
119119
null,
120120
[],
@@ -131,9 +131,9 @@ private static InputModelType[] GetTestModels()
131131
"PublicModel2",
132132
InputModelTypeUsage.Input | InputModelTypeUsage.Output,
133133
[
134-
new InputModelProperty("StringProp", "stringProp", "StringProp", StringInputType, false, false, false, [], null),
135-
new InputModelProperty("ListProp", "listProp", "ListProp", new InputArrayType("list", "list", StringInputType), false, false, false, [], null),
136-
new InputModelProperty("DictProp", "DictProp", "DictProp", new InputDictionaryType("dict", StringInputType, StringInputType), false, false, false, [], null)
134+
new InputModelProperty("StringProp", "stringProp", "StringProp", StringInputType, false, false, false, null),
135+
new InputModelProperty("ListProp", "listProp", "ListProp", new InputArrayType("list", "list", StringInputType), false, false, false, null),
136+
new InputModelProperty("DictProp", "DictProp", "DictProp", new InputDictionaryType("dict", StringInputType, StringInputType), false, false, false, null)
137137
],
138138
null,
139139
[],

0 commit comments

Comments
 (0)