We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76fac9e commit 09e0c1cCopy full SHA for 09e0c1c
src/DotNext.Tests/Runtime/InteropServices/PointerTests.cs
@@ -136,7 +136,7 @@ public static void NullPointer()
136
{
137
var ptr = default(Pointer<int>);
138
Throws<NullPointerException>(() => ptr[0] = 10);
139
- Throws<NullPointerException>(() => ptr.Value = 10);
+ Throws<NullReferenceException>(() => ptr.Value = 10);
140
Empty(ptr.ToByteArray(10));
141
True(ptr.Bytes.IsEmpty);
142
Equal(Pointer<int>.Null, ptr);
0 commit comments