|
5 | 5 |
|
6 | 6 | namespace System.CommandLine.Tests.Binding
|
7 | 7 | {
|
8 |
| - public class ClassWithSingleLetterCtorParameter |
9 |
| - { |
10 |
| - public ClassWithSingleLetterCtorParameter(int x, string y) |
11 |
| - { |
12 |
| - X = x; |
13 |
| - Y = y; |
14 |
| - } |
15 |
| - |
16 |
| - public int X { get; } |
17 |
| - |
18 |
| - public string Y { get; } |
19 |
| - } |
20 |
| - |
21 |
| - public class ClassWithSingleLetterProperty |
22 |
| - { |
23 |
| - public int X { get; set; } |
24 |
| - |
25 |
| - public int Y { get; set; } |
26 |
| - } |
27 |
| - |
28 | 8 | public class ClassWithMultiLetterCtorParameters
|
29 | 9 | {
|
30 | 10 | public ClassWithMultiLetterCtorParameters(
|
@@ -66,23 +46,6 @@ public ClassWithSettersAndCtorParametersWithDifferentNames(
|
66 | 46 | public bool BoolOption { get; set; }
|
67 | 47 | }
|
68 | 48 |
|
69 |
| - public class ClassWithSettersAndCtorParametersWithMatchingNames |
70 |
| - { |
71 |
| - public ClassWithSettersAndCtorParametersWithMatchingNames( |
72 |
| - int intOption = 123, |
73 |
| - string stringOption = "the default", |
74 |
| - bool boolOption = false) |
75 |
| - { |
76 |
| - IntOption = intOption; |
77 |
| - StringOption = stringOption; |
78 |
| - BoolOption = boolOption; |
79 |
| - } |
80 |
| - |
81 |
| - public int IntOption { get; set; } |
82 |
| - public string StringOption { get; set; } |
83 |
| - public bool BoolOption { get; set; } |
84 |
| - } |
85 |
| - |
86 | 49 | public class ClassWithCtorParameter<T>
|
87 | 50 | {
|
88 | 51 | public ClassWithCtorParameter(T value) => Value = value;
|
@@ -125,79 +88,6 @@ public Task<int> HandleAsync(T value)
|
125 | 88 | public T ReceivedValue { get; set; }
|
126 | 89 | }
|
127 | 90 |
|
128 |
| - public class TypeWithInvokeAndCtor |
129 |
| - { |
130 |
| - public TypeWithInvokeAndCtor(int intFromCtor, string stringFromCtor) |
131 |
| - { |
132 |
| - IntValueFromCtor = intFromCtor; |
133 |
| - StringValueFromCtor = stringFromCtor; |
134 |
| - } |
135 |
| - |
136 |
| - public int IntValueFromCtor { get; } |
137 |
| - |
138 |
| - public string StringValueFromCtor { get; } |
139 |
| - |
140 |
| - public int IntProperty { get; set; } |
141 |
| - public string StringProperty { get; set; } |
142 |
| - |
143 |
| - public Task<int> Invoke(string stringParam, int intParam) |
144 |
| - { |
145 |
| - return Task.FromResult(76); |
146 |
| - } |
147 |
| - } |
148 |
| - |
149 |
| - public class ClassWithInvokeAndDefaultCtor |
150 |
| - { |
151 |
| - public int IntProperty { get; set; } |
152 |
| - public string StringProperty { get; set; } |
153 |
| - |
154 |
| - public Task<int> Invoke(string stringParam, int intParam) |
155 |
| - { |
156 |
| - return Task.FromResult(66); |
157 |
| - } |
158 |
| - |
159 |
| - public Task<int> SomethingElse(int intParam, string stringParam) |
160 |
| - { |
161 |
| - return Task.FromResult(67); |
162 |
| - } |
163 |
| - } |
164 |
| - |
165 |
| - public class ClassWithStaticsInvokeAndCtor |
166 |
| - { |
167 |
| - public ClassWithStaticsInvokeAndCtor(int intFromCtor, string stringFromCtor) |
168 |
| - { |
169 |
| - IntValueFromCtor = intFromCtor; |
170 |
| - StringValueFromCtor = stringFromCtor; |
171 |
| - } |
172 |
| - |
173 |
| - public static int StaticIntProperty { get; set; } = 67; |
174 |
| - |
175 |
| - public static string StaticStringProperty { get; set; } |
176 |
| - |
177 |
| - public int IntValueFromCtor { get; } |
178 |
| - |
179 |
| - public string StringValueFromCtor { get; } |
180 |
| - |
181 |
| - public int IntProperty { get; set; } |
182 |
| - public string StringProperty { get; set; } |
183 |
| - |
184 |
| - public static Task<int> Invoke(string stringParam, int intParam) |
185 |
| - { |
186 |
| - return Task.FromResult(96); |
187 |
| - } |
188 |
| - } |
189 |
| - |
190 |
| - public class ClassWithParameterlessInvokeAndDefaultCtor |
191 |
| - { |
192 |
| - public int IntProperty { get; set; } |
193 |
| - public string StringProperty { get; set; } |
194 |
| - |
195 |
| - public Task<int> Invoke() |
196 |
| - { |
197 |
| - return Task.FromResult(86); |
198 |
| - } |
199 |
| - } |
200 |
| - |
201 | 91 | public class ClassWithMultipleCtor
|
202 | 92 | {
|
203 | 93 | public ClassWithMultipleCtor()
|
|
0 commit comments