From df17f0533af3aa66a913e0ada9c628eeb34dde42 Mon Sep 17 00:00:00 2001 From: Jason Curl Date: Mon, 1 May 2017 12:59:17 +0200 Subject: [PATCH] Mark manual tests as explicit Manual tests that are explicit won't be automatically run from NUnit in the VSIDE, MonoDevelop IDE or the NUnit runner unless explicitly set. Issue: DOTNET-88 --- .../SerialPortStreamTest.cs | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/test/SerialPortStreamTest/SerialPortStreamTest.cs b/test/SerialPortStreamTest/SerialPortStreamTest.cs index b5c9ab1a..7319ad2d 100644 --- a/test/SerialPortStreamTest/SerialPortStreamTest.cs +++ b/test/SerialPortStreamTest/SerialPortStreamTest.cs @@ -1687,8 +1687,8 @@ public void ClosedWhenReadBlocked() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadBlocked() { byte[] buffer = new byte[1024]; @@ -1712,8 +1712,8 @@ public void DisconnectOnReadBlocked() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadBlockedReadAgain() { byte[] buffer = new byte[1024]; @@ -1743,8 +1743,8 @@ public void DisconnectOnReadBlockedReadAgain() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadCharsBlocked() { char[] buffer = new char[1024]; @@ -1768,8 +1768,8 @@ public void DisconnectOnReadCharsBlocked() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadCharsBlockedReadAgain() { char[] buffer = new char[1024]; @@ -1799,8 +1799,8 @@ public void DisconnectOnReadCharsBlockedReadAgain() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadByteBlocked() { using (SerialPortStream serialSource = new SerialPortStream(c_SourcePort, 115200, 8, Parity.None, StopBits.One)) { @@ -1822,8 +1822,8 @@ public void DisconnectOnReadByteBlocked() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadByteBlockedReadAgain() { using (SerialPortStream serialSource = new SerialPortStream(c_SourcePort, 115200, 8, Parity.None, StopBits.One)) { @@ -1851,8 +1851,8 @@ public void DisconnectOnReadByteBlockedReadAgain() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadCharBlocked() { using (SerialPortStream serialSource = new SerialPortStream(c_SourcePort, 115200, 8, Parity.None, StopBits.One)) { @@ -1874,8 +1874,8 @@ public void DisconnectOnReadCharBlocked() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadCharBlockedReadAgain() { using (SerialPortStream serialSource = new SerialPortStream(c_SourcePort, 115200, 8, Parity.None, StopBits.One)) { @@ -1903,8 +1903,8 @@ public void DisconnectOnReadCharBlockedReadAgain() /// In case of the device no longer available, it should abort the read with an exception. /// [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnReadLineBlocked() { using (SerialPortStream serialSource = new SerialPortStream(c_SourcePort, 115200, 8, Parity.None, StopBits.One)) { @@ -1923,8 +1923,8 @@ public void DisconnectOnReadLineBlocked() } [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnFlushBlocked() { byte[] buffer = new byte[8192]; @@ -1957,8 +1957,8 @@ public void DisconnectOnFlushBlocked() } [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnWriteBlocked() { byte[] buffer = new byte[8192]; @@ -1990,8 +1990,8 @@ public void DisconnectOnWriteBlocked() } [Test] - //[Ignore("Manual Test")] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void DisconnectOnWriteAsyncBlocked() { byte[] buffer = new byte[8192]; @@ -2026,6 +2026,7 @@ public void DisconnectOnWriteAsyncBlocked() [Test] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void ReadUntilDisconnectThenClose() { byte[] buffer = new byte[8192]; @@ -2045,6 +2046,7 @@ public void ReadUntilDisconnectThenClose() [Test] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void ReadUntilDisconnectThenDispose() { byte[] buffer = new byte[8192]; @@ -2063,6 +2065,7 @@ public void ReadUntilDisconnectThenDispose() [Test] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void ReadUntilDisconnectAndReadAgainThenClose() { byte[] buffer = new byte[8192]; @@ -2090,6 +2093,7 @@ public void ReadUntilDisconnectAndReadAgainThenClose() [Test] [Category("SerialPortStream.ManualTest")] + [Explicit("Manual Test")] public void ReadUntilDisconnectAndReadAgainThenDispose() { byte[] buffer = new byte[8192];