Fix additional compile inference errors under VS2015
authorvaron <varon@users.noreply.github.com>
Fri, 2 Jun 2017 11:56:11 +0000 (13:56 +0200)
committervaron <varon@users.noreply.github.com>
Fri, 2 Jun 2017 11:56:11 +0000 (13:56 +0200)
tests/OpenTK.Tests/Vector4Tests.fs

index 0cf78ad..4a6fada 100644 (file)
@@ -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<IndexOutOfRangeException> |> ignore
+            (fun() -> v.[-1] <- x) |> Assert.ThrowsIndexExn
 
         [<Property>]
         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<IndexOutOfRangeException> |> ignore
+            (fun() -> v.[-1] |> ignore) |> Assert.ThrowsIndexExn
 
         [<Property>]
         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<IndexOutOfRangeException> |> ignore
+            (fun() -> v.[4] <- x) |> Assert.ThrowsIndexExn
 
         [<Property>]
         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<IndexOutOfRangeException> |> ignore
+            (fun() -> v.[4] |> ignore) |> Assert.ThrowsIndexExn
 
     [<Properties(Arbitrary = [| typeof<OpenTKGen> |])>]
     module Length =