diff --git a/tests/OpenTK.Tests/Vector4Tests.fs b/tests/OpenTK.Tests/Vector4Tests.fs index 0cf78ad0..4a6fada3 100644 --- a/tests/OpenTK.Tests/Vector4Tests.fs +++ b/tests/OpenTK.Tests/Vector4Tests.fs @@ -101,25 +101,25 @@ module Vector4 = let ``Indexed set operator throws exception for negative indices`` (x, y, z, w) = let mutable v = Vector4(x, y, z, w) - (fun() -> v.[-1] <- x) |> Assert.Throws |> ignore + (fun() -> v.[-1] <- x) |> Assert.ThrowsIndexExn [] let ``Indexed get operator throws exception for negative indices`` (x, y, z, w) = let mutable v = Vector4(x, y, z, w) - (fun() -> v.[-1] |> ignore) |> Assert.Throws |> ignore + (fun() -> v.[-1] |> ignore) |> Assert.ThrowsIndexExn [] let ``Indexed set operator throws exception for large indices`` (x, y, z, w) = let mutable v = Vector4(x, y, z, w) - (fun() -> v.[4] <- x) |> Assert.Throws |> ignore + (fun() -> v.[4] <- x) |> Assert.ThrowsIndexExn [] let ``Indexed get operator throws exception for large indices`` (x, y, z, w) = let mutable v = Vector4(x, y, z, w) - (fun() -> v.[4] |> ignore) |> Assert.Throws |> ignore + (fun() -> v.[4] |> ignore) |> Assert.ThrowsIndexExn [ |])>] module Length =