Skip to content

Commit 0e59f63

Browse files
HurricanKaiBeyley
andauthored
Backport math fixes (#1030)
Signed-off-by: Kai Jellinghaus <contact@kaij.tech> Co-authored-by: Beyley Thomas <ep1cm1n10n123@gmail.com>
1 parent 05db588 commit 0e59f63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Silk.NET.Maths.Tests/Vector3Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Vector3CopyToTest()
2727
Assert.Throws<NullReferenceException>(() => v1.CopyTo(null, 0));
2828
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, -1));
2929
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, a.Length));
30-
Assert.Throws<ArgumentException>(null, () => v1.CopyTo(a, a.Length - 2));
30+
Assert.Throws<ArgumentException>(() => v1.CopyTo(a, a.Length - 2));
3131

3232
v1.CopyTo(a, 1);
3333
v1.CopyTo(b);

tests/Silk.NET.Maths.Tests/Vector4Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Vector4CopyToTest()
2727
Assert.Throws<NullReferenceException>(() => v1.CopyTo(null, 0));
2828
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, -1));
2929
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, a.Length));
30-
Assert.Throws<ArgumentException>(null, () => v1.CopyTo(a, a.Length - 2));
30+
Assert.Throws<ArgumentException>(() => v1.CopyTo(a, a.Length - 2));
3131

3232
v1.CopyTo(a, 1);
3333
v1.CopyTo(b);

0 commit comments

Comments
 (0)