public class FileSystemInfoTest : Assertion
{
string TempFolder = Path.Combine (Path.GetTempPath (), "MonoTests.System.IO.Tests");
+ static readonly char DSC = Path.DirectorySeparatorChar;
[SetUp]
protected void SetUp()
[Test]
public void CreationTimeFile ()
{
- string path = TempFolder + "/FSIT.CreationTime.Test";
+ string path = TempFolder + DSC + "FSIT.CreationTime.Test";
DeleteFile (path);
if (Unix) { // Unix doesn't support CreationTimes
return;
[Test]
public void CreationTimeDirectory ()
{
- string path = TempFolder + "/FSIT.CreationTimeDirectory.Test";
+ string path = TempFolder + DSC + "FSIT.CreationTimeDirectory.Test";
DeleteDir (path);
if (Unix) { // Unix doesn't support CreationTimes
return;
[Test]
public void CreationTimeNoFileOrDirectory ()
{
- string path = TempFolder + "/FSIT.CreationTimeNoFile.Test";
+ string path = TempFolder + DSC + "FSIT.CreationTimeNoFile.Test";
DeleteFile (path);
DeleteDir (path);
[Test]
public void Extenssion ()
{
- string path = TempFolder + "/FSIT.Extenssion.Test";
+ string path = TempFolder + DSC + "FSIT.Extenssion.Test";
DeleteFile (path);
try {
[Test]
public void DefaultLastAccessTime ()
{
- string path = TempFolder + "/FSIT.DefaultLastAccessTime.Test";
+ string path = TempFolder + DSC + "FSIT.DefaultLastAccessTime.Test";
DeleteFile (path);
try {
[Test]
public void LastAccessTime ()
{
- string path = TempFolder + "/FSIT.LastAccessTime.Test";
+ string path = TempFolder + DSC + "FSIT.LastAccessTime.Test";
DeleteFile (path);
try {
[Test]
public void DefaultLastWriteTime ()
{
- string path = TempFolder + "/FSIT.DefaultLastWriteTime.Test";
+ string path = TempFolder + DSC + "FSIT.DefaultLastWriteTime.Test";
DeleteDir (path);
try {
[Test]
public void LastWriteTime ()
{
- string path = TempFolder + "/FSIT.LastWriteTime.Test";
+ string path = TempFolder + DSC + "FSIT.LastWriteTime.Test";
DeleteDir (path);
try {