public void Test_FileHidden() { switch (System.Environment.OSVersion.Platform) { case PlatformID.Unix: case PlatformID.MacOSX: String name = java.lang.SystemJ.getProperty("java.io.tmpdir") + ".VampireApi.secret"; java.io.File hidden = new java.io.File(name); if (!hidden.exists()) { String content = "secret=geheimnis"; byte[] value = System.Text.Encoding.GetEncoding("utf-8").GetBytes(content); java.io.FileOutputStream fos = new java.io.FileOutputStream(name); fos.write(value, 0, value.Length); fos.flush(); fos.close(); } Assert.True(new java.io.File(name).exists(), "java.io.File.exists() found not file " + name); Assert.True(hidden.isHidden(), "File " + hidden.toString() + " should be hidden"); break; default: Assert.Warn("Test_FileHidden not implemented for this platform"); break; } }