public bool Filename_9600()
{
string portName;
int baudRate = 9600;
string fileName = portName = "PortNameEqualToFileName.txt";
System.IO.FileStream testFile = System.IO.File.Open(fileName, System.IO.FileMode.Create);
System.Text.ASCIIEncoding asciiEncd = new System.Text.ASCIIEncoding();
string testStr = "Hello World";
bool retValue = false;
testFile.Write(asciiEncd.GetBytes(testStr), 0, asciiEncd.GetByteCount(testStr));
testFile.Close();
try
{
retValue = VerifyCtor(portName, baudRate, typeof(ArgumentException), ThrowAt.Open);
}
catch (Exception)
{
throw;
}
finally
{
System.IO.File.Delete(fileName);
}
return(retValue);
}