Skip to content

Commit e5972fa

Browse files
authored
Add .ToImmutableArray()
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 1825cd1 commit e5972fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

HashifyNet.UnitTests/Core/IHashFunction_Extensions_Tests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
using HashifyNet.Algorithms.Jenkins;
3131
using HashifyNet.UnitTests.Utilities;
3232
using Moq;
33+
using System.Collections.Immutable;
3334
using System.Text;
3435

3536
namespace HashifyNet.UnitTests
@@ -348,7 +349,7 @@ private void AssertSugar(Action<IHashFunction<DefaultHashConfig>, int> action, b
348349
.Returns(new DefaultHashConfig() { HashSizeInBits = 32 });
349350

350351
hashFunctionMock.Setup(hf => hf.ComputeHash(It.Is<byte[]>(d => data.SequenceEqual(d))))
351-
.Returns(Mock.Of<IHashValue>(hv => hv.Hash == new byte[4]))
352+
.Returns(Mock.Of<IHashValue>(hv => hv.Hash == new byte[4].ToImmutableArray()))
352353
.Verifiable();
353354

354355
var hashFunction = hashFunctionMock.Object;
@@ -390,3 +391,4 @@ public void IHashFunction_Extensions_ComputeHash_WithDesiredBits_byteArray()
390391
}
391392

392393
}
394+

0 commit comments

Comments
 (0)