diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-12-04 17:16:31 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-12-04 17:16:31 +0300 |
commit | a1aced8ab22c1dabd25542fe808459f332039ee9 (patch) | |
tree | edc815c58e3da7337a937cc454546af09b9530d7 /mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/IO/FileIO.cs | |
parent | 336755ca9edfbb0dd5c395f59a398c76449f7fdc (diff) |
Remove 4.0 profile
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/IO/FileIO.cs')
-rw-r--r-- | mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/IO/FileIO.cs | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/IO/FileIO.cs b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/IO/FileIO.cs deleted file mode 100644 index d004fd7c7de..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/IO/FileIO.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Reflection;
-using System.UnitTesting;
-
-namespace System.IO
-{
- public static class FileIO
- {
- public const string RootTemporaryDirectoryName = "RootTempDirectory";
-
- private static string _temporaryDirectory;
- public static string GetRootTemporaryDirectory()
- {
- if (_temporaryDirectory == null)
- {
-#if SILVERLIGHT
- string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), RootTemporaryDirectoryName);
-#else
- string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, RootTemporaryDirectoryName);
-#endif
-
- if (!Directory.Exists(path))
- {
- Directory.CreateDirectory(path);
- }
-
- _temporaryDirectory = path;
- }
-
- return _temporaryDirectory;
- }
-
- public static string GetNewTemporaryDirectory()
- {
- string path = Path.Combine(GetRootTemporaryDirectory(), TestServices.GenerateRandomString());
-
- Directory.CreateDirectory(path);
-
- return path;
- }
-
- public static string GetTemporaryFileName(string extension)
- {
- return Path.Combine(GetRootTemporaryDirectory(), TestServices.GenerateRandomString() + "." + extension);
- }
- }
-}
|