Skip to content

Commit

Permalink
Mark manual tests as explicit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jcurl committed May 6, 2017
1 parent 71c0d4e commit df17f05
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions test/SerialPortStreamTest/SerialPortStreamTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1687,8 +1687,8 @@ public void ClosedWhenReadBlocked()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[Test]
//[Ignore("Manual Test")]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void DisconnectOnReadBlocked()
{
byte[] buffer = new byte[1024];
Expand All @@ -1712,8 +1712,8 @@ public void DisconnectOnReadBlocked()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[Test]
//[Ignore("Manual Test")]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void DisconnectOnReadBlockedReadAgain()
{
byte[] buffer = new byte[1024];
Expand Down Expand Up @@ -1743,8 +1743,8 @@ public void DisconnectOnReadBlockedReadAgain()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[Test]
//[Ignore("Manual Test")]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void DisconnectOnReadCharsBlocked()
{
char[] buffer = new char[1024];
Expand All @@ -1768,8 +1768,8 @@ public void DisconnectOnReadCharsBlocked()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[Test]
//[Ignore("Manual Test")]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void DisconnectOnReadCharsBlockedReadAgain()
{
char[] buffer = new char[1024];
Expand Down Expand Up @@ -1799,8 +1799,8 @@ public void DisconnectOnReadCharsBlockedReadAgain()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[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)) {
Expand All @@ -1822,8 +1822,8 @@ public void DisconnectOnReadByteBlocked()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[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)) {
Expand Down Expand Up @@ -1851,8 +1851,8 @@ public void DisconnectOnReadByteBlockedReadAgain()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[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)) {
Expand All @@ -1874,8 +1874,8 @@ public void DisconnectOnReadCharBlocked()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[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)) {
Expand Down Expand Up @@ -1903,8 +1903,8 @@ public void DisconnectOnReadCharBlockedReadAgain()
/// In case of the device no longer available, it should abort the read with an exception.
/// </remarks>
[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)) {
Expand All @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -2026,6 +2026,7 @@ public void DisconnectOnWriteAsyncBlocked()

[Test]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void ReadUntilDisconnectThenClose()
{
byte[] buffer = new byte[8192];
Expand All @@ -2045,6 +2046,7 @@ public void ReadUntilDisconnectThenClose()

[Test]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void ReadUntilDisconnectThenDispose()
{
byte[] buffer = new byte[8192];
Expand All @@ -2063,6 +2065,7 @@ public void ReadUntilDisconnectThenDispose()

[Test]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void ReadUntilDisconnectAndReadAgainThenClose()
{
byte[] buffer = new byte[8192];
Expand Down Expand Up @@ -2090,6 +2093,7 @@ public void ReadUntilDisconnectAndReadAgainThenClose()

[Test]
[Category("SerialPortStream.ManualTest")]
[Explicit("Manual Test")]
public void ReadUntilDisconnectAndReadAgainThenDispose()
{
byte[] buffer = new byte[8192];
Expand Down

0 comments on commit df17f05

Please sign in to comment.