Home
last modified time | relevance | path

Searched refs:Throws (Results 251 – 275 of 16559) sorted by relevance

1...<<11121314151617181920>>...663

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Json/tests/
H A DJsonValueTests.cs204 Assert.Throws<FormatException>(() => JsonValue.Parse("1E!")); in Parse_InvalidNumericString_ThrowsFormatException()
401 Assert.Throws<InvalidOperationException>(() => value.Count); in Count_ThrowsInvalidOperationException()
408 Assert.Throws<InvalidOperationException>(() => value[0]); in Item_Int_ThrowsInvalidOperationException()
409 Assert.Throws<InvalidOperationException>(() => value[0] = 0); in Item_Int_ThrowsInvalidOperationException()
416 Assert.Throws<InvalidOperationException>(() => value["abc"]); in Item_String_ThrowsInvalidOperationException()
417 Assert.Throws<InvalidOperationException>(() => value["abc"] = 0); in Item_String_ThrowsInvalidOperationException()
424 Assert.Throws<InvalidOperationException>(() => value.ContainsKey("key")); in ContainsKey_ThrowsInvalidOperationException()
472 Assert.Throws<InvalidCastException>(() => { bool i = new JsonArray(); }); in ImplicitConversion_NotJsonPrimitive_ThrowsInvalidCastException()
478 Assert.Throws<InvalidCastException>(() => { int i = new JsonArray(); }); in ImplicitConversion_NotJsonPrimitive_ThrowsInvalidCastException()
490 Assert.Throws<InvalidCastException>(() => { Uri i = new JsonArray(); }); in ImplicitConversion_NotJsonPrimitive_ThrowsInvalidCastException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices/tests/System/DirectoryServices/
H A DDirectoryEntryTests.cs105 Assert.Throws<ObjectDisposedException>(() => entry.Guid); in Dispose_GetProperties_ThrowsObjectDisposedException()
106 Assert.Throws<ObjectDisposedException>(() => entry.Name); in Dispose_GetProperties_ThrowsObjectDisposedException()
107 Assert.Throws<ObjectDisposedException>(() => entry.NativeGuid); in Dispose_GetProperties_ThrowsObjectDisposedException()
108 Assert.Throws<ObjectDisposedException>(() => entry.NativeObject); in Dispose_GetProperties_ThrowsObjectDisposedException()
110 Assert.Throws<ObjectDisposedException>(() => entry.Parent); in Dispose_GetProperties_ThrowsObjectDisposedException()
112 Assert.Throws<ObjectDisposedException>(() => entry.SchemaEntry); in Dispose_GetProperties_ThrowsObjectDisposedException()
128 Assert.Throws<NullReferenceException>(() => entry.CopyTo(null)); in CopyTo_NullEntry_ThrowsNullReferenceException()
148 Assert.Throws<COMException>(() => entry.DeleteTree()); in DeleteTree_NoObject_ThrowsCOMException()
157 Assert.Throws<ObjectDisposedException>(() => entry.DeleteTree()); in DeleteTree_DisposedObject_ObjectDisposedException()
188 Assert.Throws<NullReferenceException>(() => entry.MoveTo(null)); in MoveTo_NullEntry_ThrowsNullReferenceException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO/tests/BinaryReader/
H A DBinaryReaderTests.cs74 Assert.Throws<ObjectDisposedException>(() => binaryReader.PeekChar()); in ValidateDisposedExceptions()
75 Assert.Throws<ObjectDisposedException>(() => binaryReader.Read()); in ValidateDisposedExceptions()
79 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadByte()); in ValidateDisposedExceptions()
80 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadBytes(1)); in ValidateDisposedExceptions()
81 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadChar()); in ValidateDisposedExceptions()
82 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadChars(1)); in ValidateDisposedExceptions()
84 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadDouble()); in ValidateDisposedExceptions()
85 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadInt16()); in ValidateDisposedExceptions()
86 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadInt32()); in ValidateDisposedExceptions()
87 Assert.Throws<ObjectDisposedException>(() => binaryReader.ReadInt64()); in ValidateDisposedExceptions()
[all …]
/dports/shells/elvish/elvish-0.17.0/pkg/eval/
H A Dcompile_effect_test.go120 That("{put put} foo").Throws(
125 That("[] foo").Throws(
134 That("put &[]=[]").Throws(
187 Throws(errs.OutOfRange{What: "index",
227 That("x = 1 2").Throws(
231 That("x y = 1").Throws(
235 That("x y @z = 1").Throws(
310 That("echo []> test").Throws(
316 That("echo >&test").Throws(
322 That("echo > []").Throws(
[all …]
/dports/www/firefox-esr/firefox-91.8.0/dom/webidl/
H A DBaseAudioContext.webidl32 [Throws]
37 [NewObject, Throws]
42 [Throws]
54 [NewObject, Throws]
59 [NewObject, Throws]
62 [NewObject, Throws]
65 [NewObject, Throws]
68 [NewObject, Throws]
71 [NewObject, Throws]
74 [NewObject, Throws]
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/dom/webidl/
H A DBaseAudioContext.webidl32 [Throws]
37 [NewObject, Throws]
42 [Throws]
54 [NewObject, Throws]
59 [NewObject, Throws]
62 [NewObject, Throws]
65 [NewObject, Throws]
68 [NewObject, Throws]
71 [NewObject, Throws]
74 [NewObject, Throws]
[all …]
H A DWindow.webidl212 [Throws] attribute DOMString name;
223 [Throws] attribute DOMString status;
226 [Throws] void stop();
292 //[Throws] Selection getSelection();
293 [Throws] Selection? getSelection();
433 [Throws, NeedsCallerType]
435 [Throws, NeedsCallerType]
514 [ChromeOnly, Throws]
535 [Constant, Throws, ChromeOnly]
559 [Replaceable, Throws, UseCounter]
[all …]
/dports/www/firefox/firefox-99.0/dom/webidl/
H A DBaseAudioContext.webidl32 [Throws]
37 [NewObject, Throws]
42 [Throws]
54 [NewObject, Throws]
59 [NewObject, Throws]
62 [NewObject, Throws]
65 [NewObject, Throws]
68 [NewObject, Throws]
71 [NewObject, Throws]
74 [NewObject, Throws]
[all …]
/dports/www/firefox-legacy/firefox-52.8.0esr/dom/webidl/
H A DSelection.webidl20 [Throws]
22 [Throws]
24 [Throws]
27 [Throws]
30 [Throws]
32 [Throws]
36 [Throws]
38 [Throws]
40 [Throws]
42 [Throws]
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/dom/webidl/
H A DBaseAudioContext.webidl32 [Throws]
37 [NewObject, Throws]
42 [Throws]
54 [NewObject, Throws]
59 [NewObject, Throws]
62 [NewObject, Throws]
65 [NewObject, Throws]
68 [NewObject, Throws]
71 [NewObject, Throws]
74 [NewObject, Throws]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.Compression/tests/
H A DCompressionStreamUnitTests.NetFX.cs33 …Assert.Throws<ArgumentNullException>(() => { if (useAsync) { decompressor.WriteAsync(null, 0, 0).W… in Write_ArgumentValidation()
38 …Assert.Throws<InvalidOperationException>(() => useAsync ? decompressor.ReadAsync(new byte[1], 0, 1… in Write_ArgumentValidation()
39 …Assert.Throws<InvalidOperationException>(() => useAsync ? decompressor.ReadAsync(new byte[1], 1, 1… in Write_ArgumentValidation()
54 …Assert.Throws<ArgumentNullException>(() => useAsync ? decompressor.ReadAsync(null, 0, 0).Result : … in Read_ArgumentValidation()
55 …Assert.Throws<ArgumentOutOfRangeException>(() => useAsync ? decompressor.ReadAsync(new byte[1], -1… in Read_ArgumentValidation()
56 …Assert.Throws<ArgumentOutOfRangeException>(() => useAsync ? decompressor.ReadAsync(new byte[1], 0,… in Read_ArgumentValidation()
80 Assert.Throws<InvalidDataException>(() => { zip.Read(bytes, 0, _bufferSize); }); in DecompressFailsWithRealGzStream()
103 …Assert.Throws<ArgumentNullException>(() => { if (useAsync) { decompressor.WriteAsync(null, 0, 0).W… in Write_ArgumentValidation()
108 …Assert.Throws<InvalidOperationException>(() => useAsync ? decompressor.ReadAsync(new byte[1], 0, 1… in Write_ArgumentValidation()
109 …Assert.Throws<InvalidOperationException>(() => useAsync ? decompressor.ReadAsync(new byte[1], 1, 1… in Write_ArgumentValidation()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices.Protocols/tests/
H A DLdapConnectionTests.cs32 AssertExtensions.Throws<ArgumentException>(null, () => new LdapConnection("se rver")); in Ctor_ServerHasSpaceInName_ThrowsArgumentException()
91 … Assert.Throws<NullReferenceException>(() => new LdapConnection((LdapDirectoryIdentifier)null)); in Ctor_NullIdentifier_ThrowsNullReferenceException()
155 Assert.Throws<ObjectDisposedException>(() => connection.Bind()); in Bind_Disposed_ThrowsObjectDisposedException()
156 Assert.Throws<ObjectDisposedException>(() => connection.Bind(null)); in Bind_Disposed_ThrowsObjectDisposedException()
166 Assert.Throws<InvalidOperationException>(() => connection.Bind()); in Bind_AnonymouseAuthenticationAndNetworkCredentials_ThrowsInvalidOperationException()
175 Assert.Throws<ObjectDisposedException>(() => connection.SendRequest(new AddRequest())); in SendRequest_Disposed_ThrowsObjectDisposedException()
191 … Assert.Throws<NotSupportedException>(() => connection.SendRequest(new DsmlAuthRequest())); in SendRequest_DsmlAuthRequest_ThrowsNotSupportedException()
225 Assert.Throws<ObjectDisposedException>(() => connection.EndSendRequest(null)); in EndSendRequest_Disposed_ThrowsObjectDisposedException()
248 Assert.Throws<ObjectDisposedException>(() => connection.GetPartialResults(null)); in GetPartialResults_Disposed_ThrowsObjectDisposedException()
271 Assert.Throws<ObjectDisposedException>(() => connection.Abort(null)); in Abort_Disposed_ThrowsObjectDisposedException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime/tests/System/
H A DDateTimeOffsetTests.cs359 …AssertExtensions.Throws<ArgumentOutOfRangeException>("years", () => DateTimeOffset.Now.AddYears(10… in AddYears_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
360 …AssertExtensions.Throws<ArgumentOutOfRangeException>("years", () => DateTimeOffset.Now.AddYears(-1… in AddYears_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
362 …AssertExtensions.Throws<ArgumentOutOfRangeException>("months", () => DateTimeOffset.MaxValue.AddYe… in AddYears_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
363 …AssertExtensions.Throws<ArgumentOutOfRangeException>("months", () => DateTimeOffset.MinValue.AddYe… in AddYears_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
383 …AssertExtensions.Throws<ArgumentOutOfRangeException>("months", () => DateTimeOffset.Now.AddMonths(… in AddMonths_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
407 …AssertExtensions.Throws<ArgumentOutOfRangeException>("value", () => DateTimeOffset.MaxValue.AddDay… in AddDays_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
408 …AssertExtensions.Throws<ArgumentOutOfRangeException>("value", () => DateTimeOffset.MinValue.AddDay… in AddDays_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
428 …AssertExtensions.Throws<ArgumentOutOfRangeException>("value", () => DateTimeOffset.MaxValue.AddHou… in AddHours_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
429 …AssertExtensions.Throws<ArgumentOutOfRangeException>("value", () => DateTimeOffset.MinValue.AddHou… in AddHours_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
512 …AssertExtensions.Throws<ArgumentOutOfRangeException>("value", () => DateTimeOffset.MaxValue.AddTic… in AddTicks_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Security.Cryptography.X509Certificates/tests/CertificateCreation/
H A DCertificateRequestApiTests.cs47 AssertExtensions.Throws<ArgumentException>( in SelfSign_ArgumentValidation()
72 AssertExtensions.Throws<ArgumentException>( in Sign_ArgumentValidation()
76 AssertExtensions.Throws<ArgumentException>( in Sign_ArgumentValidation()
80 AssertExtensions.Throws<ArgumentException>( in Sign_ArgumentValidation()
93 AssertExtensions.Throws<ArgumentNullException>( in CtorValidation_ECDSA_string()
99 AssertExtensions.Throws<ArgumentNullException>( in CtorValidation_ECDSA_string()
107 AssertExtensions.Throws<ArgumentException>( in CtorValidation_ECDSA_string()
120 AssertExtensions.Throws<ArgumentNullException>( in CtorValidation_ECDSA_X500DN()
126 AssertExtensions.Throws<ArgumentNullException>( in CtorValidation_ECDSA_X500DN()
134 AssertExtensions.Throws<ArgumentException>( in CtorValidation_ECDSA_X500DN()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Text.RegularExpressions/tests/
H A DRegex.Replace.Tests.cs231 …AssertExtensions.Throws<ArgumentNullException>("input", () => Regex.Replace(null, "pattern", "repl… in Replace_Invalid()
234 …AssertExtensions.Throws<ArgumentNullException>("input", () => new Regex("pattern").Replace(null, "… in Replace_Invalid()
235 …AssertExtensions.Throws<ArgumentNullException>("input", () => new Regex("pattern").Replace(null, "… in Replace_Invalid()
236 …AssertExtensions.Throws<ArgumentNullException>("input", () => new Regex("pattern").Replace(null, "… in Replace_Invalid()
246 …AssertExtensions.Throws<ArgumentNullException>("pattern", () => Regex.Replace("input", null, "repl… in Replace_Invalid()
254 …AssertExtensions.Throws<ArgumentNullException>("replacement", () => Regex.Replace("input", "patter… in Replace_Invalid()
257 …AssertExtensions.Throws<ArgumentNullException>("replacement", () => new Regex("pattern").Replace("… in Replace_Invalid()
258 …AssertExtensions.Throws<ArgumentNullException>("replacement", () => new Regex("pattern").Replace("… in Replace_Invalid()
259 …AssertExtensions.Throws<ArgumentNullException>("replacement", () => new Regex("pattern").Replace("… in Replace_Invalid()
261 …AssertExtensions.Throws<ArgumentNullException>("evaluator", () => Regex.Replace("input", "pattern"… in Replace_Invalid()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.IsolatedStorage/tests/System/IO/IsolatedStorage/
H A DCopyFileTests.cs17 … AssertExtensions.Throws<ArgumentNullException>("sourceFileName", () => isf.CopyFile(null, "bar")); in CopyFile_ThrowsArgumentNull()
19 …AssertExtensions.Throws<ArgumentNullException>("destinationFileName", () => isf.CopyFile("foo", nu… in CopyFile_ThrowsArgumentNull()
44 Assert.Throws<ObjectDisposedException>(() => isf.CopyFile("foo", "bar")); in CopyFile_ThrowsObjectDisposed()
53 Assert.Throws<InvalidOperationException>(() => isf.CopyFile("foo", "bar")); in CopyDeletedFile_ThrowsInvalidOperationException()
63 Assert.Throws<InvalidOperationException>(() => isf.CopyFile("foo", "bar")); in CopyClosedFile_ThrowsInvalidOperationException()
73 … AssertExtensions.Throws<ArgumentException>("path", null, () => isf.CopyFile("\0bad", "bar")); in CopyFile_RaisesInvalidPath()
74 … AssertExtensions.Throws<ArgumentException>("path", null, () => isf.CopyFile("foo", "\0bad")); in CopyFile_RaisesInvalidPath()
84 Assert.Throws<IsolatedStorageException>(() => isf.CopyFile("\0bad", "bar")); in CopyFile_RaisesIsolatedStorageException()
85 Assert.Throws<IsolatedStorageException>(() => isf.CopyFile("foo", "\0bad")); in CopyFile_RaisesIsolatedStorageException()
108 Assert.Throws<IsolatedStorageException>(() => isf.CopyFile("foo", "bar")); in CopyFile_CopyOver()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Reflection/tests/
H A DGetTypeTests.cs28 Assert.Throws<TypeLoadException>(() => Type.GetType(typeName, throwOnError: true)); in GetType_EmptyString()
29 …AssertExtensions.Throws<ArgumentException>("typeName@0", () => Type.GetType(aqn, throwOnError: tru… in GetType_EmptyString()
36 …Assert.Throws<TypeLoadException>(() => Type.GetType(typeName, throwOnError: true, ignoreCase: fals… in GetType_EmptyString()
37 …Assert.Throws<TypeLoadException>(() => Type.GetType(typeName, throwOnError: true, ignoreCase: true… in GetType_EmptyString()
42 AssertExtensions.Throws<ArgumentException>(null, () => a.GetType(typeName)); in GetType_EmptyString()
105 Assert.Throws<TypeLoadException>(() => Type.GetType(typeName, throwOnError: true)); in GetType()
106 Assert.Throws<TypeLoadException>(() => Type.GetType(aqn, throwOnError: true)); in GetType()
115 … Assert.Throws<TypeLoadException>(() => Type.GetType(aqn, throwOnError: true, ignoreCase: false)); in GetType()
116 … Assert.Throws<TypeLoadException>(() => Type.GetType(aqn, throwOnError: true, ignoreCase: true)); in GetType()
207 Assert.Throws<TypeLoadException>(() => Type.GetType(typeName, throwOnError: true)); in GetType()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO/tests/StreamWriter/
H A DStreamWriter.StringCtorTests.cs18 … AssertExtensions.Throws<ArgumentNullException>("path", () => new StreamWriter((string)null)); in NullArgs_ThrowsArgumentNullException()
19 …AssertExtensions.Throws<ArgumentNullException>("path", () => new StreamWriter((string)null, true)); in NullArgs_ThrowsArgumentNullException()
20 …AssertExtensions.Throws<ArgumentNullException>("path", () => new StreamWriter((string)null, true, … in NullArgs_ThrowsArgumentNullException()
22 …AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamWriter("path", true, nu… in NullArgs_ThrowsArgumentNullException()
23 …AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamWriter("path", true, nu… in NullArgs_ThrowsArgumentNullException()
24 …AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamWriter("", true, null)); in NullArgs_ThrowsArgumentNullException()
25 …AssertExtensions.Throws<ArgumentNullException>("encoding", () => new StreamWriter("", true, null, … in NullArgs_ThrowsArgumentNullException()
32 AssertExtensions.Throws<ArgumentException>(null, () => new StreamWriter("")); in EmptyPath_ThrowsArgumentException()
33 AssertExtensions.Throws<ArgumentException>(null, () => new StreamWriter("", true)); in EmptyPath_ThrowsArgumentException()
34 … AssertExtensions.Throws<ArgumentException>(null, () => new StreamWriter("", true, Encoding.UTF8)); in EmptyPath_ThrowsArgumentException()
[all …]
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]
/dports/devel/stylua/StyLua-0.11.0/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/web-sys-0.3.55/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]
/dports/net-im/zkgroup/zkgroup-0.7.4/cargo-crates/web-sys-0.3.51/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/web-sys-0.3.53/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]
/dports/devel/sccache/sccache-0.2.15/cargo-crates/web-sys-0.3.46/webidls/enabled/
H A DBrowserElement.webidl29 [Throws,
34 [Throws,
41 [Throws,
51 [Throws,
66 [Throws,
71 [Throws,
76 [Throws,
81 [Throws,
86 [Throws,
92 [Throws,
[all …]

1...<<11121314151617181920>>...663