Lines Matching refs:Throws

29 …            AssertExtensions.Throws<ArgumentNullException>("buffer", () => pipe.Write(null, 0, 1));  in WriteWithNullBuffer_Throws_ArgumentNullException()
30 … AssertExtensions.Throws<ArgumentNullException>("buffer", () => { pipe.WriteAsync(null, 0, 1); }); in WriteWithNullBuffer_Throws_ArgumentNullException()
33 … AssertExtensions.Throws<ArgumentNullException>("buffer", () => pipe.Write(null, -1, 1)); in WriteWithNullBuffer_Throws_ArgumentNullException()
34 … AssertExtensions.Throws<ArgumentNullException>("buffer", () => { pipe.WriteAsync(null, -1, 1); }); in WriteWithNullBuffer_Throws_ArgumentNullException()
37 … AssertExtensions.Throws<ArgumentNullException>("buffer", () => pipe.Write(null, -1, -1)); in WriteWithNullBuffer_Throws_ArgumentNullException()
38 …AssertExtensions.Throws<ArgumentNullException>("buffer", () => { pipe.WriteAsync(null, -1, -1); }); in WriteWithNullBuffer_Throws_ArgumentNullException()
54 …AssertExtensions.Throws<ArgumentOutOfRangeException>("offset", () => pipe.Write(new byte[5], -1, 1… in WriteWithNegativeOffset_Throws_ArgumentOutOfRangeException()
55 …AssertExtensions.Throws<ArgumentOutOfRangeException>("offset", () => { pipe.WriteAsync(new byte[5]… in WriteWithNegativeOffset_Throws_ArgumentOutOfRangeException()
69 …AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => pipe.Write(new byte[5], 0, -1)… in WriteWithNegativeCount_Throws_ArgumentOutOfRangeException()
70 …AssertExtensions.Throws<ArgumentOutOfRangeException>("count", () => { pipe.WriteAsync(new byte[5],… in WriteWithNegativeCount_Throws_ArgumentOutOfRangeException()
84 … AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[1], 1, 1)); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
87 … AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[1], 2, 0)); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
90 … AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[0], 1, 0)); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
93 … AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[2], 1, 2)); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
96 … AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[0], int.MaxValue, 0)); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
97 …AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[0], int.MaxValue, int.M… in WriteWithOutOfBoundsArray_Throws_ArgumentException()
99 … AssertExtensions.Throws<ArgumentException>(null, () => pipe.Write(new byte[5], 3, 4)); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
102 … AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[1], 1, 1); }); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
105 … AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[1], 2, 0); }); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
108 … AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[0], 1, 0); }); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
111 … AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[2], 1, 2); }); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
114 …AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[0], int.MaxValue… in WriteWithOutOfBoundsArray_Throws_ArgumentException()
115 …AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[0], int.MaxValue… in WriteWithOutOfBoundsArray_Throws_ArgumentException()
117 … AssertExtensions.Throws<ArgumentException>(null, () => { pipe.WriteAsync(new byte[5], 3, 4); }); in WriteWithOutOfBoundsArray_Throws_ArgumentException()
135 Assert.Throws<NotSupportedException>(() => pipe.Read(new byte[9], 0, 5)); in ReadOnWriteOnlyPipe_Throws_NotSupportedException()
137 Assert.Throws<NotSupportedException>(() => pipe.ReadByte()); in ReadOnWriteOnlyPipe_Throws_NotSupportedException()
139 Assert.Throws<NotSupportedException>(() => pipe.InBufferSize); in ReadOnWriteOnlyPipe_Throws_NotSupportedException()
141 Assert.Throws<NotSupportedException>(() => { pipe.ReadAsync(new byte[10], 0, 5); }); 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()
176 … Assert.Throws<NotSupportedException>(() => pipe.Seek(10L, System.IO.SeekOrigin.Begin)); in WritePipeUnsupportedMembers_Throws_NotSupportedException()
189 Assert.Throws<ObjectDisposedException>(() => pipe.Write(buffer, 0, buffer.Length)); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
190 Assert.Throws<ObjectDisposedException>(() => pipe.WriteByte(5)); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
191 … Assert.Throws<ObjectDisposedException>(() => { pipe.WriteAsync(buffer, 0, buffer.Length); }); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
192 Assert.Throws<ObjectDisposedException>(() => pipe.Flush()); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
193 Assert.Throws<ObjectDisposedException>(() => pipe.IsMessageComplete); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
194 Assert.Throws<ObjectDisposedException>(() => pipe.ReadMode); in WriteToDisposedWriteablePipe_Throws_ObjectDisposedException()
214 … Assert.Throws<IOException>(() => pair.writeablePipe.Write(buffer, 0, buffer.Length)); in WriteToPipeWithClosedPartner_Throws_IOException()
215 Assert.Throws<IOException>(() => pair.writeablePipe.WriteByte(123)); in WriteToPipeWithClosedPartner_Throws_IOException()
216 … Assert.Throws<IOException>(() => { pair.writeablePipe.WriteAsync(buffer, 0, buffer.Length); }); in WriteToPipeWithClosedPartner_Throws_IOException()
217 Assert.Throws<IOException>(() => pair.writeablePipe.Flush()); in WriteToPipeWithClosedPartner_Throws_IOException()