/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/tests/ReadOnlySpan/ |
H A D | CtorArrayIntInt.cs | 42 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, -1, 0).DontBox()); in CtorArrayIntIntNegativeStart() 49 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 4, 0).DontBox()); in CtorArrayIntIntStartTooLarge() 56 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 0, -1).DontBox()); in CtorArrayIntIntNegativeLength() 63 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 3, 1).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 64 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 2, 2).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 65 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 1, 3).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 66 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 0, 4).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 67 …ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, int.MaxValue, int.MaxValue).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge()
|
H A D | Slice.cs | 62 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(-1).DontBox()); in SliceIntRangeChecksd() 63 ….Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(a.Length + 1).DontBox()); in SliceIntRangeChecksd() 64 … Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(-1, 0).DontBox()); in SliceIntRangeChecksd() 65 …rows<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(0, a.Length + 1).DontBox()); in SliceIntRangeChecksd() 66 …<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(2, a.Length + 1 - 2).DontBox()); in SliceIntRangeChecksd() 67 …rows<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(a.Length + 1, 0).DontBox()); in SliceIntRangeChecksd() 68 …t.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a).Slice(a.Length, 1).DontBox()); in SliceIntRangeChecksd()
|
H A D | AsReadOnlySpan.cs | 43 Assert.Throws<ArgumentNullException>(() => a.AsReadOnlySpan().DontBox()); in NullArrayAsReadOnlySpan() 120 Assert.Throws<ArgumentNullException>(() => s.AsReadOnlySpan().DontBox()); in StringAsReadOnlySpanNullChecked() 121 Assert.Throws<ArgumentNullException>(() => s.AsReadOnlySpan(0).DontBox()); in StringAsReadOnlySpanNullChecked() 122 Assert.Throws<ArgumentNullException>(() => s.AsReadOnlySpan(0, 0).DontBox()); in StringAsReadOnlySpanNullChecked() 177 …xtensions.Throws<ArgumentOutOfRangeException>("start", () => text.AsReadOnlySpan(start).DontBox()); in AsReadOnlySpan_2Arg_OutOfRange() 184 …s.Throws<ArgumentOutOfRangeException>("start", () => text.AsReadOnlySpan(start, length).DontBox()); in AsReadOnlySpan_3Arg_OutOfRange()
|
H A D | NonPortableCast.cs | 40 …xplicit>(span, (_span) => _span.NonPortableCast<TestHelpers.TestStructExplicit, byte>().DontBox()); in NonPortableCastOverflow() 41 …plicit>(span, (_span) => _span.NonPortableCast<TestHelpers.TestStructExplicit, ulong>().DontBox()); in NonPortableCastOverflow() 48 …ntException, uint>(span, (_span) => _span.NonPortableCast<uint, StructWithReferences>().DontBox()); in NonPortableCastToTypeContainsReferences() 55 …uctWithReferences>(span, (_span) => _span.NonPortableCast<StructWithReferences, uint>().DontBox()); in NonPortableCastFromTypeContainsReferences()
|
H A D | CtorPointerInt.cs | 62 …tensions.Throws<ArgumentException>(null, () => new ReadOnlySpan<object>((void*)null, 0).DontBox()); in CtorPointerNoContainsReferenceEnforcement() 63 …s<ArgumentException>(null, () => new ReadOnlySpan<StructWithReferences>((void*)null, 0).DontBox()); in CtorPointerNoContainsReferenceEnforcement()
|
H A D | CtorArray.cs | 75 Assert.Throws<ArgumentNullException>(() => new ReadOnlySpan<int>(null).DontBox()); in CtorArrayNullArray() 76 Assert.Throws<ArgumentNullException>(() => new ReadOnlySpan<int>(null, 0, 0).DontBox()); in CtorArrayNullArray()
|
H A D | AsBytes.cs | 28 ….AssertThrows<ArgumentException, StructWithReferences>(span, (_span) => _span.AsBytes().DontBox()); in AsBytesContainsReferences()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/tests/Span/ |
H A D | CtorArrayIntInt.cs | 42 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, -1, 0).DontBox()); in CtorArrayIntIntNegativeStart() 49 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 4, 0).DontBox()); in CtorArrayIntIntStartTooLarge() 56 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 0, -1).DontBox()); in CtorArrayIntIntNegativeLength() 63 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 3, 1).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 64 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 2, 2).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 65 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 1, 3).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 66 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 0, 4).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge() 67 ….Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, int.MaxValue, int.MaxValue).DontBox()); in CtorArrayIntIntStartAndLengthTooLarge()
|
H A D | Slice.cs | 62 Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(-1).DontBox()); in SliceIntRangeChecksd() 63 … Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(a.Length + 1).DontBox()); in SliceIntRangeChecksd() 64 … Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(-1, 0).DontBox()); in SliceIntRangeChecksd() 65 …ssert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(0, a.Length + 1).DontBox()); in SliceIntRangeChecksd() 66 …t.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(2, a.Length + 1 - 2).DontBox()); in SliceIntRangeChecksd() 67 …ssert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(a.Length + 1, 0).DontBox()); in SliceIntRangeChecksd() 68 … Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a).Slice(a.Length, 1).DontBox()); in SliceIntRangeChecksd()
|
H A D | CtorArray.cs | 74 Assert.Throws<ArgumentNullException>(() => new Span<int>(null).DontBox()); in CtorArrayNullArray() 75 Assert.Throws<ArgumentNullException>(() => new Span<int>(null, 0, 0).DontBox()); in CtorArrayNullArray() 83 Assert.Throws<ArrayTypeMismatchException>(() => new Span<object>(a).DontBox()); in CtorArrayWrongArrayType() 84 … Assert.Throws<ArrayTypeMismatchException>(() => new Span<object>(a, 0, a.Length).DontBox()); in CtorArrayWrongArrayType()
|
H A D | NonPortableCast.cs | 40 …xplicit>(span, (_span) => _span.NonPortableCast<TestHelpers.TestStructExplicit, byte>().DontBox()); in NonPortableCastOverflow() 41 …plicit>(span, (_span) => _span.NonPortableCast<TestHelpers.TestStructExplicit, ulong>().DontBox()); in NonPortableCastOverflow() 48 …ntException, uint>(span, (_span) => _span.NonPortableCast<uint, StructWithReferences>().DontBox()); in NonPortableCastToTypeContainsReferences() 55 …uctWithReferences>(span, (_span) => _span.NonPortableCast<StructWithReferences, uint>().DontBox()); in NonPortableCastFromTypeContainsReferences()
|
H A D | CtorPointerInt.cs | 62 …AssertExtensions.Throws<ArgumentException>(null, () => new Span<object>((void*)null, 0).DontBox()); in CtorPointerNoContainsReferenceEnforcement() 63 …ns.Throws<ArgumentException>(null, () => new Span<StructWithReferences>((void*)null, 0).DontBox()); in CtorPointerNoContainsReferenceEnforcement()
|
H A D | AsBytes.cs | 28 ….AssertThrows<ArgumentException, StructWithReferences>(span, (_span) => _span.AsBytes().DontBox()); in AsBytesContainsReferences()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/tests/ |
H A D | TestHelpers.cs | 75 public static void DontBox<T>(this Span<T> span) in DontBox() method in System.TestHelpers 139 public static void DontBox<T>(this ReadOnlySpan<T> span) in DontBox() method in System.TestHelpers
|