Skip to content

Commit b2a8779

Browse files
authored
Update SpookyHashV1 tests with CLS Compliant types
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent e5d2087 commit b2a8779

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

HashifyNet.UnitTests/Algorithms/SpookyHash/SpookyHashV1_Implementation_Tests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public void SpookyHashV1_Implementation_Constructor_ValidInputs_Works()
4949
.Returns(32);
5050

5151
spookyHashConfigMock.SetupGet(xhc => xhc.Seed)
52-
.Returns(0UL);
52+
.Returns(0L);
5353

5454
spookyHashConfigMock.SetupGet(xhc => xhc.Seed2)
55-
.Returns(0UL);
55+
.Returns(0L);
5656

5757
spookyHashConfigMock.Setup(xhc => xhc.Clone())
5858
.Returns(() => spookyHashConfigMock.Object);
@@ -311,8 +311,8 @@ protected override ISpookyHashV1 CreateHashFunction(int hashSize) =>
311311
new SpookyHashConfig()
312312
{
313313
HashSizeInBits = hashSize,
314-
Seed = 0x7da236b987930b75U,
315-
Seed2 = 0x2eb994a3851d2f54U
314+
Seed = 0x7da236b987930b75,
315+
Seed2 = 0x2eb994a3851d2f54
316316
});
317317
}
318318

@@ -332,11 +332,11 @@ protected override ISpookyHashV1 CreateHashFunction(int hashSize) =>
332332
new SpookyHashV1_Implementation(
333333
new SpookyHashConfig()
334334
{
335-
Seed = 0x7da236b987930b75U,
336-
Seed2 = 0x2eb994a3851d2f54U
335+
Seed = 0x7da236b987930b75,
336+
Seed2 = 0x2eb994a3851d2f54
337337
});
338338
}
339339
}
340340
}
341341

342-
#pragma warning restore CS0618 // SpookyHashV1_Implementation' is obsolete: 'SpookyHashV1 has known issues, use SpookyHashV2.'
342+
#pragma warning restore CS0618 // SpookyHashV1_Implementation' is obsolete: 'SpookyHashV1 has known issues, use SpookyHashV2.'

0 commit comments

Comments
 (0)