Skip to content

Commit 2c315c5

Browse files
committed
Annotate test code
1 parent 52a5a57 commit 2c315c5

14 files changed

Lines changed: 348 additions & 340 deletions

PropertyChangedAnalyzers.Test/INPC002MutablePublicPropertyShouldNotify/CodeFix.AutoProperty.cs

Lines changed: 90 additions & 86 deletions
Large diffs are not rendered by default.

PropertyChangedAnalyzers.Test/INPC002MutablePublicPropertyShouldNotify/CodeFix.CaliburnMicro.PropertyChangedBase.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ namespace N
233233
{
234234
public class C : Caliburn.Micro.PropertyChangedBase
235235
{
236-
private string p;
236+
private int p;
237237
238-
public string ↓P
238+
public int ↓P
239239
{
240240
get { return this.p; }
241241
set { this.p = value; }
@@ -248,9 +248,9 @@ namespace N
248248
{
249249
public class C : Caliburn.Micro.PropertyChangedBase
250250
{
251-
private string p;
251+
private int p;
252252
253-
public string P
253+
public int P
254254
{
255255
get { return this.p; }
256256
set { this.Set(ref this.p, value); }
@@ -269,9 +269,9 @@ namespace N
269269
{
270270
public class C : Caliburn.Micro.PropertyChangedBase
271271
{
272-
private string p;
272+
private string? p;
273273
274-
public string ↓P
274+
public string? ↓P
275275
{
276276
get => this.p;
277277
set => this.p = value;
@@ -284,9 +284,9 @@ namespace N
284284
{
285285
public class C : Caliburn.Micro.PropertyChangedBase
286286
{
287-
private string p;
287+
private string? p;
288288
289-
public string P
289+
public string? P
290290
{
291291
get => this.p;
292292
set => this.Set(ref this.p, value);
@@ -305,9 +305,9 @@ namespace N
305305
{
306306
public class C : Caliburn.Micro.PropertyChangedBase
307307
{
308-
private string p;
308+
private int p;
309309
310-
public string ↓P { get => this.p; set => this.p = value; }
310+
public int ↓P { get => this.p; set => this.p = value; }
311311
}
312312
}";
313313

@@ -316,9 +316,9 @@ namespace N
316316
{
317317
public class C : Caliburn.Micro.PropertyChangedBase
318318
{
319-
private string p;
319+
private int p;
320320
321-
public string P { get => this.p; set => this.Set(ref this.p, value); }
321+
public int P { get => this.p; set => this.Set(ref this.p, value); }
322322
}
323323
}";
324324
RoslynAssert.CodeFix(Analyzer, Fix, ExpectedDiagnostic, before, after, fixTitle: "Set(ref oldValue, newValue)", settings: Settings);
@@ -333,9 +333,9 @@ namespace N
333333
{
334334
public class C : Caliburn.Micro.PropertyChangedBase
335335
{
336-
private string _p;
336+
private int _p;
337337
338-
public string ↓P
338+
public int ↓P
339339
{
340340
get { return _p; }
341341
set { _p = value; }
@@ -348,9 +348,9 @@ namespace N
348348
{
349349
public class C : Caliburn.Micro.PropertyChangedBase
350350
{
351-
private string _p;
351+
private int _p;
352352
353-
public string P
353+
public int P
354354
{
355355
get { return _p; }
356356
set { Set(ref _p, value); }
@@ -369,9 +369,9 @@ namespace N
369369
{
370370
public class C : Caliburn.Micro.PropertyChangedBase
371371
{
372-
private string _p;
372+
private int _p;
373373
374-
public string ↓P
374+
public int ↓P
375375
{
376376
get => _p;
377377
set => _p = value;
@@ -384,9 +384,9 @@ namespace N
384384
{
385385
public class C : Caliburn.Micro.PropertyChangedBase
386386
{
387-
private string _p;
387+
private int _p;
388388
389-
public string P
389+
public int P
390390
{
391391
get => _p;
392392
set => Set(ref _p, value);

PropertyChangedAnalyzers.Test/INPC002MutablePublicPropertyShouldNotify/CodeFix.CaliburnMicro.Screen.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ namespace N
207207
{
208208
public class C : Caliburn.Micro.Screen
209209
{
210-
private string p;
210+
private int p;
211211
212-
public string ↓P
212+
public int ↓P
213213
{
214214
get { return this.p; }
215215
set { this.p = value; }
@@ -222,9 +222,9 @@ namespace N
222222
{
223223
public class C : Caliburn.Micro.Screen
224224
{
225-
private string p;
225+
private int p;
226226
227-
public string P
227+
public int P
228228
{
229229
get { return this.p; }
230230
set { this.Set(ref this.p, value); }
@@ -243,9 +243,9 @@ namespace N
243243
{
244244
public class C : Caliburn.Micro.Screen
245245
{
246-
private string p;
246+
private int p;
247247
248-
public string ↓P
248+
public int ↓P
249249
{
250250
get => this.p;
251251
set => this.p = value;
@@ -258,9 +258,9 @@ namespace N
258258
{
259259
public class C : Caliburn.Micro.Screen
260260
{
261-
private string p;
261+
private int p;
262262
263-
public string P
263+
public int P
264264
{
265265
get => this.p;
266266
set => this.Set(ref this.p, value);
@@ -279,9 +279,9 @@ namespace N
279279
{
280280
public class C : Caliburn.Micro.Screen
281281
{
282-
private string _p;
282+
private int _p;
283283
284-
public string ↓P
284+
public int ↓P
285285
{
286286
get { return _p; }
287287
set { _p = value; }
@@ -294,9 +294,9 @@ namespace N
294294
{
295295
public class C : Caliburn.Micro.Screen
296296
{
297-
private string _p;
297+
private int _p;
298298
299-
public string P
299+
public int P
300300
{
301301
get { return _p; }
302302
set { Set(ref _p, value); }
@@ -315,9 +315,9 @@ namespace N
315315
{
316316
public class C : Caliburn.Micro.Screen
317317
{
318-
private string _p;
318+
private int _p;
319319
320-
public string ↓P
320+
public int ↓P
321321
{
322322
get => _p;
323323
set => _p = value;
@@ -330,9 +330,9 @@ namespace N
330330
{
331331
public class C : Caliburn.Micro.Screen
332332
{
333-
private string _p;
333+
private int _p;
334334
335-
public string P
335+
public int P
336336
{
337337
get => _p;
338338
set => Set(ref _p, value);

0 commit comments

Comments
 (0)