Skip to content

Commit 13f6186

Browse files
committed
Adjusted tests
1 parent 2be5907 commit 13f6186

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/SourceGeneratorTests/ValueObjectSourceGeneratorTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ public static bool TryCreate(
20002000
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
20012001
}
20022002

2003-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
2003+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
20042004

20052005
partial void FactoryPostInit();
20062006

@@ -3055,7 +3055,7 @@ public static bool TryCreate(
30553055
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
30563056
}
30573057

3058-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
3058+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
30593059

30603060
partial void FactoryPostInit();
30613061

@@ -3254,7 +3254,7 @@ public static bool TryCreate(
32543254
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
32553255
}
32563256

3257-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
3257+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
32583258

32593259
partial void FactoryPostInit();
32603260

@@ -3451,7 +3451,7 @@ public static bool TryCreate(
34513451
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
34523452
}
34533453

3454-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
3454+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
34553455

34563456
partial void FactoryPostInit();
34573457

@@ -5243,7 +5243,7 @@ public static bool TryCreate(
52435243
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
52445244
}
52455245

5246-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
5246+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
52475247

52485248
partial void FactoryPostInit();
52495249

@@ -5450,7 +5450,7 @@ public static bool TryCreate(
54505450
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
54515451
}
54525452

5453-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
5453+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
54545454

54555455
partial void FactoryPostInit();
54565456

@@ -6097,7 +6097,7 @@ public static bool TryCreate(
60976097
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
60986098
}
60996099

6100-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
6100+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
61016101

61026102
partial void FactoryPostInit();
61036103

@@ -6306,7 +6306,7 @@ public static bool TryCreate(
63066306
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
63076307
}
63086308

6309-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField);
6309+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField);
63106310

63116311
partial void FactoryPostInit();
63126312

@@ -6512,7 +6512,7 @@ public static bool TryCreate(
65126512
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
65136513
}
65146514

6515-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref global::Thinktecture.Tests.Foo referenceField);
6515+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref global::Thinktecture.Tests.Foo referenceField);
65166516

65176517
partial void FactoryPostInit();
65186518

@@ -6736,7 +6736,7 @@ public static bool TryCreate(
67366736
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
67376737
}
67386738

6739-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField, ref int structField, ref string referenceProperty, ref string? nullableReferenceProperty, ref int structProperty, ref int? nullableStructProperty);
6739+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField, ref int structField, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceProperty, ref string? nullableReferenceProperty, ref int structProperty, ref int? nullableStructProperty);
67406740

67416741
partial void FactoryPostInit();
67426742

@@ -6955,7 +6955,7 @@ public static bool TryCreate(
69556955
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
69566956
}
69576957

6958-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField, ref int structField, ref string referenceProperty, ref string? nullableReferenceProperty, ref int structProperty, ref int? nullableStructProperty);
6958+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField, ref int structField, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceProperty, ref string? nullableReferenceProperty, ref int structProperty, ref int? nullableStructProperty);
69596959

69606960
partial void FactoryPostInit();
69616961

@@ -7218,7 +7218,7 @@ public static bool TryCreate(
72187218
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
72197219
}
72207220

7221-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField, ref int structField, ref string referenceProperty, ref string? nullableReferenceProperty, ref int structProperty, ref int? nullableStructProperty);
7221+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField, ref int structField, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceProperty, ref string? nullableReferenceProperty, ref int structProperty, ref int? nullableStructProperty);
72227222

72237223
partial void FactoryPostInit();
72247224

@@ -7465,7 +7465,7 @@ public static bool TryCreate(
74657465
return validationResult == global::System.ComponentModel.DataAnnotations.ValidationResult.Success;
74667466
}
74677467

7468-
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, ref string referenceField1, ref string referenceField2, ref string referenceField3, ref string referenceField4, ref string referenceField5, ref string referenceField6, ref string referenceField7, ref string referenceField8, ref string referenceField9);
7468+
static partial void ValidateFactoryArguments(ref global::System.ComponentModel.DataAnnotations.ValidationResult? validationResult, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField1, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField2, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField3, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField4, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField5, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField6, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField7, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField8, [global::System.Diagnostics.CodeAnalysis.AllowNullAttribute, global::System.Diagnostics.CodeAnalysis.NotNullAttribute] ref string referenceField9);
74697469

74707470
partial void FactoryPostInit();
74717471

test/Thinktecture.Runtime.Extensions.Tests.Shared/TestValueObjects/BoundaryWithStrings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.ComponentModel.DataAnnotations;
2-
using System.Diagnostics.CodeAnalysis;
32

43
namespace Thinktecture.Runtime.Tests.TestValueObjects;
54

0 commit comments

Comments
 (0)