Home
last modified time | relevance | path

Searched refs:Throws (Results 26 – 50 of 10031) sorted by relevance

12345678910>>...402

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Extensions/tests/System/
H A DBitConverter.cs23 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToBoolean(null, 0)); in ValueArgumentNull()
24 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToChar(null, 0)); in ValueArgumentNull()
25 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToDouble(null, 0)); in ValueArgumentNull()
26 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToInt16(null, 0)); in ValueArgumentNull()
27 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToInt32(null, 0)); in ValueArgumentNull()
28 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToInt64(null, 0)); in ValueArgumentNull()
29 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToSingle(null, 0)); in ValueArgumentNull()
30 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToUInt16(null, 0)); in ValueArgumentNull()
31 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToUInt32(null, 0)); in ValueArgumentNull()
32 … AssertExtensions.Throws<ArgumentNullException>("value", () => BitConverter.ToUInt64(null, 0)); in ValueArgumentNull()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.WebClient/tests/
H A DWebClientTest.cs42 … AssertExtensions.Throws<ArgumentNullException>("Encoding", () => { wc.Encoding = null; }); in Properties_InvalidArguments_ThrowExceptions()
449 Assert.Throws<NotSupportedException>(() => { wc.DownloadData(url); }); in ConcurrentOperations_Throw()
450 Assert.Throws<NotSupportedException>(() => { wc.DownloadDataAsync(url); }); in ConcurrentOperations_Throw()
451 Assert.Throws<NotSupportedException>(() => { wc.DownloadDataTaskAsync(url); }); in ConcurrentOperations_Throw()
452 Assert.Throws<NotSupportedException>(() => { wc.DownloadString(url); }); in ConcurrentOperations_Throw()
453 Assert.Throws<NotSupportedException>(() => { wc.DownloadStringAsync(url); }); in ConcurrentOperations_Throw()
454 Assert.Throws<NotSupportedException>(() => { wc.DownloadStringTaskAsync(url); }); in ConcurrentOperations_Throw()
455 Assert.Throws<NotSupportedException>(() => { wc.DownloadFile(url, "path"); }); in ConcurrentOperations_Throw()
461 Assert.Throws<NotSupportedException>(() => { wc.UploadString(url, "42"); }); in ConcurrentOperations_Throw()
462 Assert.Throws<NotSupportedException>(() => { wc.UploadStringAsync(url, "42"); }); in ConcurrentOperations_Throw()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization/tests/CompareInfo/
H A DCompareInfoTests.LastIndexOf.cs201 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.LastIndexOf(null… in LastIndexOf_Invalid()
203 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.LastIndexOf(null… in LastIndexOf_Invalid()
207 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.LastIndexOf(null… in LastIndexOf_Invalid()
209 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.LastIndexOf(null… in LastIndexOf_Invalid()
214 …AssertExtensions.Throws<ArgumentNullException>("value", () => s_invariantCompare.LastIndexOf("", n… in LastIndexOf_Invalid()
216 …AssertExtensions.Throws<ArgumentNullException>("value", () => s_invariantCompare.LastIndexOf("", n… in LastIndexOf_Invalid()
221 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.LastIndexOf(null… in LastIndexOf_Invalid()
223 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.LastIndexOf(null… in LastIndexOf_Invalid()
290 …AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => s_invariantCompare.LastIndexOf… in LastIndexOf_Invalid()
296 …AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => s_invariantCompare.LastIndexOf… in LastIndexOf_Invalid()
[all …]
H A DCompareInfoTests.IndexOf.cs221 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.IndexOf(null, "a… in IndexOf_Invalid()
223 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.IndexOf(null, "a… in IndexOf_Invalid()
227 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.IndexOf(null, 'a… in IndexOf_Invalid()
229 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.IndexOf(null, 'a… in IndexOf_Invalid()
234 …AssertExtensions.Throws<ArgumentNullException>("value", () => s_invariantCompare.IndexOf("", null)… in IndexOf_Invalid()
236 …AssertExtensions.Throws<ArgumentNullException>("value", () => s_invariantCompare.IndexOf("", null,… in IndexOf_Invalid()
241 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.IndexOf(null, nu… in IndexOf_Invalid()
243 …AssertExtensions.Throws<ArgumentNullException>("source", () => s_invariantCompare.IndexOf(null, nu… in IndexOf_Invalid()
302 …AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => s_invariantCompare.IndexOf("Te… in IndexOf_Invalid()
308 …AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => s_invariantCompare.IndexOf("Te… in IndexOf_Invalid()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime/tests/System/Text/
H A DStringBuilderTests.cs152 Assert.Throws<IndexOutOfRangeException>(() => builder[-1]); // Index < 0 in Item_Get_Set_InvalidIndex()
153 Assert.Throws<IndexOutOfRangeException>(() => builder[5]); // Index >= string.Length in Item_Get_Set_InvalidIndex()
155 …AssertExtensions.Throws<ArgumentOutOfRangeException>("index", () => builder[-1] = 'a'); // Index <… in Item_Get_Set_InvalidIndex()
585 Assert.Throws<NullReferenceException>(() => builder.Append(null, 2)); in Append_CharPointer_Null_ThrowsNullReferenceException()
594 AssertExtensions.Throws<ArgumentOutOfRangeException>("valueCount", () => in Append_CharPointer_NegativeValueCount_ThrowsArgumentOutOfRangeException()
606 AssertExtensions.Throws<ArgumentOutOfRangeException>(s_noCapacityParamName, () => in Append_CharPointer_NoSpareCapacity_ThrowsArgumentOutOfRangeException()
658 … AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => builder.Append("", 0, -1)); in Append_String_NegativeCount_ThrowsArgumentOutOfRangeException()
891 … Assert.Throws<FormatException>(() => builder.AppendFormat("{", "")); // Format has unescaped { in AppendFormat_Invalid()
892 … Assert.Throws<FormatException>(() => builder.AppendFormat("{a", "")); // Format has unescaped { in AppendFormat_Invalid()
894 … Assert.Throws<FormatException>(() => builder.AppendFormat("}", "")); // Format has unescaped } in AppendFormat_Invalid()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/rx/Rx/NET/Source/Tests.System.Reactive/Tests/Linq/
H A DQbservableTest.cs67 ReactiveAssert.Throws<ArgumentNullException>(() => Qbservable.All(_qbMy, null)); in All_ArgumentNullChecks()
79 ReactiveAssert.Throws<ArgumentNullException>(() => Qbservable.Amb(_qbNull, _qbMy)); in Amb_ArgumentNullChecks()
99 ReactiveAssert.Throws<ArgumentNullException>(() => _qbMy.And(_qbNull)); in And_ArgumentNullChecks()
100 ReactiveAssert.Throws<ArgumentNullException>(() => _qbMy.And(_qbMy).And(_qbNull)); in And_ArgumentNullChecks()
127 ReactiveAssert.Throws<ArgumentNullException>(() => Qbservable.Any(_qbNull)); in Any_ArgumentNullChecks()
129 ReactiveAssert.Throws<ArgumentNullException>(() => Qbservable.Any(_qbMy, null)); in Any_ArgumentNullChecks()
295 ReactiveAssert.Throws<ArgumentNullException>(() => Qbservable.Count(_qbNull)); in Count_ArgumentNullChecks()
666 ReactiveAssert.Throws<InvalidCastException>(() => _qbMy.Latest()); in Latest()
840 ReactiveAssert.Throws<InvalidCastException>(() => _qbMy.MostRecent(1)); in MostRecent()
865 ReactiveAssert.Throws<InvalidCastException>(() => _qbMy.Next()); in Next()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Sockets/tests/FunctionalTests/
H A DArgumentValidationTests.cs67 Assert.Throws<InvalidOperationException>(() => in SetExclusiveAddressUse_BoundSocket_Throws_InvalidOperation()
77 Assert.Throws<ArgumentOutOfRangeException>(() => in SetReceiveBufferSize_Negative_ArgumentOutOfRange()
86 Assert.Throws<ArgumentOutOfRangeException>(() => in SetSendBufferSize_Negative_ArgumentOutOfRange()
95 Assert.Throws<ArgumentOutOfRangeException>(() => in SetReceiveTimeout_LessThanNegativeOne_Throws_ArgumentOutOfRange()
104 Assert.Throws<ArgumentOutOfRangeException>(() => in SetSendTimeout_LessThanNegativeOne_Throws_ArgumentOutOfRange()
113 Assert.Throws<ArgumentOutOfRangeException>(() => in SetTtl_OutOfRange_Throws_ArgumentOutOfRange()
117 Assert.Throws<ArgumentOutOfRangeException>(() => in SetTtl_OutOfRange_Throws_ArgumentOutOfRange()
132 Assert.Throws<NotSupportedException>(() => in SetDontFragment_Throws_NotSupported()
141 Assert.Throws<ArgumentNullException>(() => GetSocket().Bind(null)); in Bind_Throws_NullEndPoint_Throws_ArgumentNull()
147 Assert.Throws<ArgumentNullException>(() => GetSocket().Connect(null)); in Connect_EndPoint_NullEndPoint_Throws_ArgumentNull()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.Pipes/tests/
H A DPipeTest.Write.cs137 Assert.Throws<NotSupportedException>(() => pipe.ReadByte()); in ReadOnWriteOnlyPipe_Throws_NotSupportedException()
139 Assert.Throws<NotSupportedException>(() => pipe.InBufferSize); in ReadOnWriteOnlyPipe_Throws_NotSupportedException()
168 Assert.Throws<NotSupportedException>(() => pipe.Length); in WritePipeUnsupportedMembers_Throws_NotSupportedException()
170 Assert.Throws<NotSupportedException>(() => pipe.SetLength(10L)); in WritePipeUnsupportedMembers_Throws_NotSupportedException()
172 Assert.Throws<NotSupportedException>(() => pipe.Position); in WritePipeUnsupportedMembers_Throws_NotSupportedException()
174 Assert.Throws<NotSupportedException>(() => pipe.Position = 10L); in WritePipeUnsupportedMembers_Throws_NotSupportedException()
190 Assert.Throws<ObjectDisposedException>(() => pipe.WriteByte(5)); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
192 Assert.Throws<ObjectDisposedException>(() => pipe.Flush()); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
194 Assert.Throws<ObjectDisposedException>(() => pipe.ReadMode); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
215 Assert.Throws<IOException>(() => pair.writeablePipe.WriteByte(123)); in WriteToPipeWithClosedPartner_Throws_IOException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Requests/tests/
H A DWebRequestTest.cs98 Assert.Throws<NotSupportedException>(() => WebRequest.Create(uri)); in Create_InvalidWebRequestUriScheme_Throws()
133 Assert.Throws<NotImplementedException>(() => request.Method); in BaseMembers_NotCall_ThrowsNotImplementedException()
135 Assert.Throws<NotImplementedException>(() => request.RequestUri); in BaseMembers_NotCall_ThrowsNotImplementedException()
136 Assert.Throws<NotImplementedException>(() => request.Headers); in BaseMembers_NotCall_ThrowsNotImplementedException()
140 Assert.Throws<NotImplementedException>(() => request.ContentType); in BaseMembers_NotCall_ThrowsNotImplementedException()
142 Assert.Throws<NotImplementedException>(() => request.Credentials); in BaseMembers_NotCall_ThrowsNotImplementedException()
144 Assert.Throws<NotImplementedException>(() => request.Timeout); in BaseMembers_NotCall_ThrowsNotImplementedException()
145 Assert.Throws<NotImplementedException>(() => request.Timeout = 0); in BaseMembers_NotCall_ThrowsNotImplementedException()
154 Assert.Throws<NotImplementedException>(() => request.Abort()); in BaseMembers_NotCall_ThrowsNotImplementedException()
157 Assert.Throws<NotImplementedException>(() => request.Proxy); in BaseMembers_NotCall_ThrowsNotImplementedException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Dynamic.Runtime/tests/Dynamic.Context/
H A DConformance.dynamic.context.operator.compound.type.PlusEqual.cs19 Assert.Throws<RuntimeBinderException>(() => d += s_bool); in Bool()
20 Assert.Throws<RuntimeBinderException>(() => d += s_byte); in Bool()
21 Assert.Throws<RuntimeBinderException>(() => d += s_char); in Bool()
23 Assert.Throws<RuntimeBinderException>(() => d += s_double); in Bool()
24 Assert.Throws<RuntimeBinderException>(() => d += s_float); in Bool()
25 Assert.Throws<RuntimeBinderException>(() => d += s_int); in Bool()
26 Assert.Throws<RuntimeBinderException>(() => d += s_long); in Bool()
28 Assert.Throws<RuntimeBinderException>(() => d += s_sbyte); in Bool()
29 Assert.Throws<RuntimeBinderException>(() => d += s_short); in Bool()
35 Assert.Throws<RuntimeBinderException>(() => d += s_uint); in Bool()
[all …]
H A DConformance.dynamic.context.operator.compound.lift.PlusEqual.cs19 Assert.Throws<RuntimeBinderException>(() => d += s_bool); in Bool()
20 Assert.Throws<RuntimeBinderException>(() => d += s_byte); in Bool()
21 Assert.Throws<RuntimeBinderException>(() => d += s_char); in Bool()
23 Assert.Throws<RuntimeBinderException>(() => d += s_double); in Bool()
24 Assert.Throws<RuntimeBinderException>(() => d += s_float); in Bool()
25 Assert.Throws<RuntimeBinderException>(() => d += s_int); in Bool()
26 Assert.Throws<RuntimeBinderException>(() => d += s_long); in Bool()
28 Assert.Throws<RuntimeBinderException>(() => d += s_sbyte); in Bool()
29 Assert.Throws<RuntimeBinderException>(() => d += s_short); in Bool()
35 Assert.Throws<RuntimeBinderException>(() => d += s_uint); in Bool()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime/tests/System/
H A DArrayTests.cs37 Assert.Throws<IndexOutOfRangeException>(() => iList[-1]); // Index < 0 in IList_GetSetItem_Invalid()
57 Assert.Throws<NotSupportedException>(() => iList.Add(2)); in IList_ModifyingArray_ThrowsNotSupportedException()
58 Assert.Throws<NotSupportedException>(() => iList.Insert(0, 0)); in IList_ModifyingArray_ThrowsNotSupportedException()
59 Assert.Throws<NotSupportedException>(() => iList.Clear()); in IList_ModifyingArray_ThrowsNotSupportedException()
60 Assert.Throws<NotSupportedException>(() => iList.Remove(2)); in IList_ModifyingArray_ThrowsNotSupportedException()
61 Assert.Throws<NotSupportedException>(() => iList.RemoveAt(2)); in IList_ModifyingArray_ThrowsNotSupportedException()
3685 Assert.Throws<NotSupportedException>(() => iList.Add(2)); in VerifyArrayAsIList()
3687 Assert.Throws<NotSupportedException>(() => iList.Remove(0)); in VerifyArrayAsIList()
3688 Assert.Throws<NotSupportedException>(() => iList.RemoveAt(0)); in VerifyArrayAsIList()
3717 Assert.Throws<RankException>(() => iList.Contains(null)); in VerifyArrayAsIList()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Console/tests/
H A DWindowAndCursorProps.cs19 Assert.Throws<PlatformNotSupportedException>(() => Console.BufferWidth = 1); in BufferSize_SettingNotSupported()
20 Assert.Throws<PlatformNotSupportedException>(() => Console.BufferHeight = 1); in BufferSize_SettingNotSupported()
27 Assert.Throws<PlatformNotSupportedException>(() => Console.BufferWidth = 1); in BufferSize_GettingSameAsWindowSize()
40 Assert.Throws<IOException>(() => Console.WindowWidth = 0); in WindowWidth_WindowHeight_InvalidSize()
41 Assert.Throws<IOException>(() => Console.WindowHeight = 0); in WindowWidth_WindowHeight_InvalidSize()
88 Assert.Throws<IOException>(() => Console.WindowLeft); in WindowLeftTop_Windows()
89 Assert.Throws<IOException>(() => Console.WindowTop); in WindowLeftTop_Windows()
126 Assert.Throws<PlatformNotSupportedException>(() => Console.Title); in Title_GetSet_Unix()
161 Assert.Throws<IOException>(() => Console.Title); in Title_Set_Windows()
174 Assert.Throws<IOException>(() => Console.Title); in Title_Get_Windows_Uap()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.WindowsRuntime/tests/System/Runtime/InteropServices/
H A DWindowsRuntimeBufferExtensionsTests.cs43 …AssertExtensions.Throws<ArgumentNullException>("source", () => WindowsRuntimeBufferExtensions.AsBu… in AsBuffer_NullBuffer_ThrowsArgumentNullException()
44 …AssertExtensions.Throws<ArgumentNullException>("source", () => WindowsRuntimeBufferExtensions.AsBu… in AsBuffer_NullBuffer_ThrowsArgumentNullException()
45 …AssertExtensions.Throws<ArgumentNullException>("source", () => WindowsRuntimeBufferExtensions.AsBu… in AsBuffer_NullBuffer_ThrowsArgumentNullException()
109 …AssertExtensions.Throws<ArgumentNullException>("source", () => WindowsRuntimeBufferExtensions.AsSt… in AsStream_NullBuffer_ThrowsArgumentNullException()
115 …Assert.Throws<InvalidCastException>(() => WindowsRuntimeBufferExtensions.AsStream(new CustomBuffer… in AsStream_CustomBuffer_ThrowsInvalidCastException()
254 …Assert.Throws<InvalidCastException>(() => WindowsRuntimeBufferExtensions.CopyTo(new byte[10], new … in CopyTo_CustomBuffer_ThrowsInvalidCastException()
255 …Assert.Throws<InvalidCastException>(() => WindowsRuntimeBufferExtensions.CopyTo(new CustomBuffer()… in CopyTo_CustomBuffer_ThrowsInvalidCastException()
299 …AssertExtensions.Throws<ArgumentNullException>("source", () => WindowsRuntimeBufferExtensions.GetB… in GetByte_NullBuffer_ThrowsArgumentNullException()
314 …Assert.Throws<InvalidCastException>(() => WindowsRuntimeBufferExtensions.GetByte(new CustomBuffer(… in GetByte_CustomBuffer_ThrowsInvalidCastExceptionException()
419 …AssertExtensions.Throws<ArgumentNullException>("source", () => WindowsRuntimeBufferExtensions.ToAr… in ToArray_NullBuffer_ThrowsArgumentNullException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.Pipes/tests/NamedPipeTests/
H A DNamedPipeTest.CreateServer.cs21 … AssertExtensions.Throws<ArgumentNullException>("pipeName", () => new NamedPipeServerStream(null)); in NullPipeName_Throws_ArgumentNullException()
22 …AssertExtensions.Throws<ArgumentNullException>("pipeName", () => new NamedPipeServerStream(null, d… in NullPipeName_Throws_ArgumentNullException()
23 …AssertExtensions.Throws<ArgumentNullException>("pipeName", () => new NamedPipeServerStream(null, d… in NullPipeName_Throws_ArgumentNullException()
35 AssertExtensions.Throws<ArgumentException>(null, () => new NamedPipeServerStream("")); in ZeroLengthPipeName_Throws_ArgumentException()
36 … AssertExtensions.Throws<ArgumentException>(null, () => new NamedPipeServerStream("", direction)); in ZeroLengthPipeName_Throws_ArgumentException()
37 …AssertExtensions.Throws<ArgumentException>(null, () => new NamedPipeServerStream("", direction, 2)… in ZeroLengthPipeName_Throws_ArgumentException()
51 …AssertExtensions.Throws<ArgumentOutOfRangeException>("pipeName", () => new NamedPipeServerStream(r… in ReservedPipeName_Throws_ArgumentOutOfRangeException()
183 …Assert.Throws<IOException>(() => new NamedPipeServerStream(direction, false, true, fakePipeHandle)… in BadHandleKind_Throws_IOException()
220 …Assert.Throws<ApplicationException>(() => new NamedPipeServerStream(direction, true, true, handle)… in Windows_CreateFromAlreadyBoundHandle_Throws_ApplicationException()
230 Assert.Throws<InvalidOperationException>(() => pipe.SafePipeHandle); in Unix_GetHandleOfNewServerStream_Throws_InvalidOperationException()
[all …]
/dports/shells/elvish/elvish-0.17.0/pkg/edit/
H A Dcomplete_getopt_test.go30 That("complete '' >&-").Throws(eval.ErrNoValueOutput),
38 That("complete - >&-").Throws(eval.ErrNoValueOutput),
46 That("complete -- >&-").Throws(eval.ErrNoValueOutput),
50 That("complete -n '' >&-").Throws(eval.ErrNoValueOutput),
54 That("complete --name '' >&-").Throws(eval.ErrNoValueOutput),
58 That("complete -a '' >&-").Throws(eval.ErrNoValueOutput),
62 That("complete arg1 '' >&-").Throws(eval.ErrNoValueOutput),
73 Throws(ErrorWithMessage("arg should be string, got list")),
76 Throws(ErrorWithMessage("opt should be map, got string")),
82 Throws(ErrorWithMessage("long should be string, got list")),
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO/tests/BufferedStream/
H A DBufferedStream.InvalidParameters.cs15 Assert.Throws<ArgumentNullException>(() => new BufferedStream(null)); in NullConstructor_Throws_ArgumentNullException()
35 Assert.Throws<ObjectDisposedException>(() => new BufferedStream(disposedStream)); in UnderlyingStreamDisposed_Throws_ObjectDisposedException()
43 Assert.Throws<ArgumentOutOfRangeException>(() => stream.Position = -1); in SetPositionToNegativeValue_Throws_ArgumentOutOfRangeException()
54 Assert.Throws<ArgumentOutOfRangeException>(() => stream.Read(array, -1, 1)); in Read_Arguments()
55 Assert.Throws<ArgumentOutOfRangeException>(() => stream.Read(array, 1, -1)); in Read_Arguments()
56 AssertExtensions.Throws<ArgumentException>(null, () => stream.Read(array, 9, 2)); in Read_Arguments()
67 Assert.Throws<ArgumentOutOfRangeException>(() => stream.Write(array, -1, 1)); in Write_Arguments()
68 Assert.Throws<ArgumentOutOfRangeException>(() => stream.Write(array, 1, -1)); in Write_Arguments()
79 Assert.Throws<ArgumentOutOfRangeException>(() => stream.SetLength(-1)); in SetLength_NegativeValue()
92 Assert.Throws<NotSupportedException>(() => stream.Read(new byte[] { 1 }, 0, 1)); in ReadOnUnreadableStream_Throws_NotSupportedException()
[all …]
/dports/www/firefox-legacy/firefox-52.8.0esr/dom/webidl/
H A DWindow.webidl36 [Throws] attribute DOMString name;
37 [PutForwards=href, Unforgeable, Throws,
48 [Throws] attribute DOMString status;
51 [Throws] void stop();
122 //[Throws] Selection getSelection();
123 [Throws] Selection? getSelection();
284 [Throws, NeedsCallerType]
286 [Throws, NeedsCallerType]
288 [Replaceable, Throws, NeedsCallerType]
384 [ChromeOnly, Throws]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Drawing.Common/tests/
H A DGraphicsTests.cs71 Assert.Throws<InvalidOperationException>(() => graphics.GetHdc()); in GetHdc_NotReleased_ThrowsInvalidOperationException()
89 AssertExtensions.Throws<ArgumentException>(null, () => graphics.GetHdc()); in GetHdc_Disposed_ThrowsObjectDisposedException()
163 Assert.Throws<OutOfMemoryException>(() => Graphics.FromHwnd((IntPtr)10)); in FromHdc_InvalidHdc_ThrowsOutOfMemoryException()
290 Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdc((IntPtr)10)); in FromHwnd_InvalidHwnd_ThrowsOutOfMemoryException()
349 Assert.Throws<OutOfMemoryException>(() => Graphics.FromImage(image)); in FromImage_Metafile_ThrowsOutOfMemoryException()
361 Assert.Throws<OutOfMemoryException>(() => Graphics.FromImage(image)); in FromImage_Invalid16BitFormat_ThrowsOutOfMemoryException()
583 Assert.Throws<InvalidOperationException>(() => graphics.DpiX); in DpiX_GetWhenBusy_ThrowsInvalidOperationException()
600 AssertExtensions.Throws<ArgumentException>(null, () => graphics.DpiX); in DpiX_GetWhenDisposed_ThrowsArgumentException()
614 Assert.Throws<InvalidOperationException>(() => graphics.DpiX); in DpiY_GetWhenBusy_ThrowsInvalidOperationException()
666 Assert.Throws<InvalidOperationException>(() => graphics.Flush()); in Flush_Busy_ThrowsInvalidOperationException()
[all …]
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DWindow.webidl38 [Throws] attribute DOMString name;
41 [Throws] readonly attribute History history;
50 [Throws] attribute DOMString status;
51 [Throws, CrossOriginCallable] undefined close();
53 [Throws] undefined stop();
54 [Throws, CrossOriginCallable] undefined focus();
55 [Throws, CrossOriginCallable] undefined blur();
64 //[Throws] readonly attribute WindowProxy parent;
121 //[Throws] Selection getSelection();
122 [Throws] Selection? getSelection();
[all …]
/dports/devel/stylua/StyLua-0.11.0/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DWindow.webidl38 [Throws] attribute DOMString name;
41 [Throws] readonly attribute History history;
50 [Throws] attribute DOMString status;
51 [Throws, CrossOriginCallable] undefined close();
53 [Throws] undefined stop();
54 [Throws, CrossOriginCallable] undefined focus();
55 [Throws, CrossOriginCallable] undefined blur();
64 //[Throws] readonly attribute WindowProxy parent;
121 //[Throws] Selection getSelection();
122 [Throws] Selection? getSelection();
[all …]
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DWindow.webidl38 [Throws] attribute DOMString name;
41 [Throws] readonly attribute History history;
50 [Throws] attribute DOMString status;
51 [Throws, CrossOriginCallable] undefined close();
53 [Throws] undefined stop();
54 [Throws, CrossOriginCallable] undefined focus();
55 [Throws, CrossOriginCallable] undefined blur();
64 //[Throws] readonly attribute WindowProxy parent;
121 //[Throws] Selection getSelection();
122 [Throws] Selection? getSelection();
[all …]
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DWindow.webidl38 [Throws] attribute DOMString name;
41 [Throws] readonly attribute History history;
50 [Throws] attribute DOMString status;
51 [Throws, CrossOriginCallable] undefined close();
53 [Throws] undefined stop();
54 [Throws, CrossOriginCallable] undefined focus();
55 [Throws, CrossOriginCallable] undefined blur();
64 //[Throws] readonly attribute WindowProxy parent;
121 //[Throws] Selection getSelection();
122 [Throws] Selection? getSelection();
[all …]
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/web-sys-0.3.53/webidls/enabled/
H A DWindow.webidl38 [Throws] attribute DOMString name;
41 [Throws] readonly attribute History history;
50 [Throws] attribute DOMString status;
51 [Throws, CrossOriginCallable] undefined close();
53 [Throws] undefined stop();
54 [Throws, CrossOriginCallable] undefined focus();
55 [Throws, CrossOriginCallable] undefined blur();
64 //[Throws] readonly attribute WindowProxy parent;
121 //[Throws] Selection getSelection();
122 [Throws] Selection? getSelection();
[all …]
/dports/net/routinator/routinator-0.10.2/cargo-crates/web-sys-0.3.51/webidls/enabled/
H A DWindow.webidl38 [Throws] attribute DOMString name;
41 [Throws] readonly attribute History history;
50 [Throws] attribute DOMString status;
51 [Throws, CrossOriginCallable] undefined close();
53 [Throws] undefined stop();
54 [Throws, CrossOriginCallable] undefined focus();
55 [Throws, CrossOriginCallable] undefined blur();
64 //[Throws] readonly attribute WindowProxy parent;
121 //[Throws] Selection getSelection();
122 [Throws] Selection? getSelection();
[all …]

12345678910>>...402