@@ -14,7 +14,7 @@ public void GenerateSimpleBinding()
14
14
""" ;
15
15
16
16
var result = SourceGenHelpers . Run ( source ) ;
17
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
17
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
18
18
19
19
AssertExtensions . AssertNoDiagnostics ( result ) ;
20
20
AssertExtensions . CodeIsEqual (
@@ -109,7 +109,7 @@ public class B
109
109
""" ;
110
110
111
111
var result = SourceGenHelpers . Run ( source ) ;
112
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
112
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
113
113
AssertExtensions . AssertNoDiagnostics ( result ) ;
114
114
AssertExtensions . CodeIsEqual (
115
115
$$ """
@@ -212,7 +212,7 @@ public class B
212
212
""" ;
213
213
214
214
var result = SourceGenHelpers . Run ( source ) ;
215
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
215
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
216
216
AssertExtensions . AssertNoDiagnostics ( result ) ;
217
217
AssertExtensions . CodeIsEqual (
218
218
$$ """
@@ -420,7 +420,7 @@ public class C
420
420
public void GenerateSimpleBindingWhenNullableDisabledAndPropertyNullable ( string source )
421
421
{
422
422
var result = SourceGenHelpers . Run ( source ) ;
423
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
423
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
424
424
AssertExtensions . AssertNoDiagnostics ( result ) ;
425
425
AssertExtensions . CodeIsEqual (
426
426
$$ """
@@ -537,7 +537,7 @@ public class D {
537
537
""" ;
538
538
539
539
var result = SourceGenHelpers . Run ( source ) ;
540
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
540
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
541
541
AssertExtensions . AssertNoDiagnostics ( result ) ;
542
542
AssertExtensions . CodeIsEqual (
543
543
$$ """
@@ -654,7 +654,7 @@ public class MyPropertyClass
654
654
""" ;
655
655
656
656
var result = SourceGenHelpers . Run ( source ) ;
657
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
657
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
658
658
659
659
AssertExtensions . AssertNoDiagnostics ( result ) ;
660
660
AssertExtensions . CodeIsEqual (
@@ -777,7 +777,7 @@ public class MyPropertyClass
777
777
""" ;
778
778
779
779
var result = SourceGenHelpers . Run ( source ) ;
780
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
780
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
781
781
782
782
AssertExtensions . AssertNoDiagnostics ( result ) ;
783
783
AssertExtensions . CodeIsEqual (
@@ -887,7 +887,7 @@ public class Wrapper
887
887
""" ;
888
888
889
889
var result = SourceGenHelpers . Run ( source ) ;
890
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
890
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
891
891
892
892
AssertExtensions . AssertNoDiagnostics ( result ) ;
893
893
AssertExtensions . CodeIsEqual (
@@ -993,7 +993,7 @@ public class MyPropertyClass
993
993
""" ;
994
994
995
995
var result = SourceGenHelpers . Run ( source ) ;
996
- var id = Math . Abs ( result . Binding ! . Location . GetHashCode ( ) ) ;
996
+ var id = ( uint ) result . Binding ! . Location . GetHashCode ( ) ;
997
997
998
998
AssertExtensions . AssertNoDiagnostics ( result ) ;
999
999
AssertExtensions . CodeIsEqual (
0 commit comments