mirror of https://github.com/SixLabors/ImageSharp
2 changed files with 29 additions and 1 deletions
@ -0,0 +1,28 @@ |
|||
// Copyright (c) Six Labors and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
|
|||
using Xunit; |
|||
|
|||
namespace SixLabors.Tests.Helpers |
|||
{ |
|||
public class HashHelpersTests |
|||
{ |
|||
[Fact] |
|||
public void CanCombineTwoValues() |
|||
{ |
|||
Assert.Equal(35, HashHelpers.Combine(1, 2)); |
|||
} |
|||
|
|||
[Fact] |
|||
public void CanCombineThreeValues() |
|||
{ |
|||
Assert.Equal(1152, HashHelpers.Combine(1, 2, 3)); |
|||
} |
|||
|
|||
[Fact] |
|||
public void CanCombineFourValues() |
|||
{ |
|||
Assert.Equal(38020, HashHelpers.Combine(1, 2, 3, 4)); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue