{
// this occurs with a "clean" stack (full trust)
dt = new MonoTests.System.IO.DirectoryTest ();
- dir = Path.Combine (Path.GetTempPath (), "MonoCasTests.System.IO");\r
+ dir = Path.Combine (Path.GetTempPath (), "MonoCasTests.System.IO");
}
[SetUp]
dt.SetUp ();
}
- [TearDown]\r
+ [TearDown]
public void TearDown ()
{
dt.TearDown ();
- }\r
+ }
[TestFixtureTearDown]
public void FixtureTearDown ()
{
- if (Directory.Exists (dir))\r
- Directory.Delete (dir, true);\r
+ if (Directory.Exists (dir))
+ Directory.Delete (dir, true);
}
private bool RunningOnWindows {
- get { return ((int) Environment.OSVersion.Platform == 128); }
+ get {
+ // check for non-Unix platforms - see FAQ for more details
+ // http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F
+ int platform = (int) Environment.OSVersion.Platform;
+ return ((platform != 4) && (platform != 128));
+ }
}
// Partial Trust Tests - i.e. call "normal" unit with reduced privileges
dt.CreateDirectory ();
dt.Delete ();
dt.Exists ();
- dt.Move ();
+ dt.MoveDirectory ();
dt.LastAccessTime ();
dt.LastWriteTime ();
dt.GetDirectories ();