}
[Test]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void TestGetCreationTime ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "baz";
// Setting the creation time on Unix is not possible
[Test]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void CreationTime ()
{
int platform = (int) Environment.OSVersion.Platform;
}
[Test]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void LastAccessTime ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "lastAccessTime";
[Test]
[ExpectedException(typeof(ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeException1 ()
{
File.GetCreationTime (null as string);
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeException2 ()
{
File.GetCreationTime ("");
#if !NET_2_0
[ExpectedException(typeof(IOException))]
#endif
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTime_NonExistingPath ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "GetCreationTimeException3";
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeException4 ()
{
File.GetCreationTime (" ");
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeException5 ()
{
File.GetCreationTime (Path.InvalidPathChars [0].ToString ());
[Test]
[ExpectedException(typeof(ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeUtcException1 ()
{
File.GetCreationTimeUtc (null as string);
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeUtcException2 ()
{
File.GetCreationTimeUtc ("");
#if !NET_2_0
[ExpectedException (typeof (IOException))]
#endif
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeUtc_NonExistingPath ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "GetCreationTimeUtcException3";
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeUtcException4 ()
{
File.GetCreationTimeUtc (" ");
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetCreationTime not supported for TARGET_JVM
public void GetCreationTimeUtcException5 ()
{
File.GetCreationTime (Path.InvalidPathChars [0].ToString ());
[Test]
[ExpectedException(typeof(ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeException1 ()
{
File.GetLastAccessTime (null as string);
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeException2 ()
{
File.GetLastAccessTime ("");
#if !NET_2_0
[ExpectedException (typeof (IOException))]
#endif
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTime_NonExistingPath ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "GetLastAccessTimeException3";
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeException4 ()
{
File.GetLastAccessTime (" ");
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeException5 ()
{
File.GetLastAccessTime (Path.InvalidPathChars [0].ToString ());
[Test]
[ExpectedException(typeof(ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeUtcException1 ()
{
File.GetLastAccessTimeUtc (null as string);
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeUtcException2 ()
{
File.GetLastAccessTimeUtc ("");
#if !NET_2_0
[ExpectedException (typeof (IOException))]
#endif
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeUtc_NonExistingPath ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "GetLastAccessTimeUtcException3";
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeUtcException4 ()
{
File.GetLastAccessTimeUtc (" ");
[Test]
[ExpectedException(typeof(ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // GetLastAccessTime not supported for TARGET_JVM
public void GetLastAccessTimeUtcException5 ()
{
File.GetLastAccessTimeUtc (Path.InvalidPathChars [0].ToString ());
[Test]
[ExpectedException(typeof (ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeArgumentNullException1 ()
{
File.SetCreationTime (null as string, new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeArgumenException1 ()
{
File.SetCreationTime ("", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeArgumenException2 ()
{
File.SetCreationTime (" ", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
// On Unix there are no invalid path chars.
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeArgumenException3 ()
{
if (Path.InvalidPathChars.Length > 1) {
[Test]
[ExpectedException(typeof (FileNotFoundException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeFileNotFoundException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetCreationTimeFileNotFoundException1";
[Test]
[ExpectedException(typeof (IOException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeIOException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "CreationTimeIOException1";
[Test]
[ExpectedException(typeof (ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeUtcArgumentNullException1 ()
{
File.SetCreationTimeUtc (null as string, new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeUtcArgumenException1 ()
{
File.SetCreationTimeUtc ("", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeUtcArgumenException2 ()
{
File.SetCreationTimeUtc (" ", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
// On Unix there are no invalid path chars.
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeUtcArgumentException3 ()
{
if (Path.InvalidPathChars.Length > 1) {
[Test]
[ExpectedException(typeof (FileNotFoundException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeUtcFileNotFoundException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetCreationTimeUtcFileNotFoundException1";
[Test]
[ExpectedException(typeof (IOException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetCreationTime not supported for TARGET_JVM
public void SetCreationTimeUtcIOException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetCreationTimeUtcIOException1";
[Test]
[ExpectedException(typeof (ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeArgumentNullException1 ()
{
File.SetLastAccessTime (null as string, new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeArgumenException1 ()
{
File.SetLastAccessTime ("", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeArgumenException2 ()
{
File.SetLastAccessTime (" ", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
// On Unix there are no invalid path chars.
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeArgumenException3 ()
{
if (Path.InvalidPathChars.Length > 1) {
[Test]
[ExpectedException(typeof (FileNotFoundException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeFileNotFoundException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetLastAccessTimeFileNotFoundException1";
[Test]
[ExpectedException(typeof (IOException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeIOException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "LastAccessIOException1";
[Test]
[ExpectedException(typeof (ArgumentNullException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeUtcArgumentNullException1 ()
{
File.SetLastAccessTimeUtc (null as string, new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetCLastAccessTimeUtcArgumenException1 ()
{
File.SetLastAccessTimeUtc ("", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
[ExpectedException(typeof (ArgumentException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeUtcArgumenException2 ()
{
File.SetLastAccessTimeUtc (" ", new DateTime (2000, 12, 12, 11, 59, 59));
[Test]
// On Unix there are no invalid path chars.
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeUtcArgumenException3 ()
{
if (Path.InvalidPathChars.Length > 1) {
[Test]
[ExpectedException(typeof (FileNotFoundException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeUtcFileNotFoundException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetLastAccessTimeUtcFileNotFoundException1";
[Test]
[ExpectedException(typeof (IOException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
+ [Category("TargetJvmNotSupported")] // SetLastAccessTime not supported for TARGET_JVM
public void SetLastAccessTimeUtcIOException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetLastAccessTimeUtcIOException1";
[Test]
[ExpectedException(typeof (IOException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
public void SetLastWriteTimeIOException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "LastWriteTimeIOException1";
//
[Test]
[ExpectedException(typeof (IOException))]
-#if TARGET_JVM
- [Category("NotWorking")]
-#endif
public void SetLastWriteTimeUtcIOException1 ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "SetLastWriteTimeUtcIOException1";
FileStream stream = null;
try {
stream = File.Create (path);
- File.SetLastAccessTimeUtc (path, new DateTime (1000, 12, 12, 11, 59, 59));
+ File.SetLastWriteTimeUtc (path, new DateTime (1000, 12, 12, 11, 59, 59));
} finally {
if (stream != null)
stream.Close ();