diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2013-11-22 08:46:04 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2013-11-22 08:46:46 +0400 |
commit | 1f705d453c89dd0d79f7c301cfbc2a1fecfa1761 (patch) | |
tree | 4909d705826a33a88ecd14cb6b7c057df2fe13e8 /main/tests/UnitTests/Util.cs | |
parent | 5da91003c71e383a8f3999ddf26a0ecb81333793 (diff) |
Remove MD1 project format
Diffstat (limited to 'main/tests/UnitTests/Util.cs')
-rw-r--r-- | main/tests/UnitTests/Util.cs | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/main/tests/UnitTests/Util.cs b/main/tests/UnitTests/Util.cs index 660a6e0058..e3dcf4ae64 100644 --- a/main/tests/UnitTests/Util.cs +++ b/main/tests/UnitTests/Util.cs @@ -36,7 +36,7 @@ using MonoDevelop.Projects; namespace UnitTests { - public class Util + public static class Util { static string rootDir; static int projectId = 1; @@ -56,10 +56,6 @@ namespace UnitTests get { return Path.Combine (TestsRootDir, "tmp"); } } - public static FileFormat FileFormatMD1 { - get { return Services.ProjectService.FileFormats.GetFileFormat ("MD1"); } - } - public static FileFormat FileFormatMSBuild05 { get { return Services.ProjectService.FileFormats.GetFileFormat ("MSBuild05"); } } @@ -67,6 +63,14 @@ namespace UnitTests public static FileFormat FileFormatMSBuild08 { get { return Services.ProjectService.FileFormats.GetFileFormat ("MSBuild08"); } } + + public static FileFormat FileFormatMSBuild10 { + get { return Services.ProjectService.FileFormats.GetFileFormat ("MSBuild10"); } + } + + public static FileFormat FileFormatMSBuild12 { + get { return Services.ProjectService.FileFormats.GetFileFormat ("MSBuild12"); } + } public static IProgressMonitor GetMonitor () { @@ -119,6 +123,11 @@ namespace UnitTests doc.Load (file); return Infoset (doc); } + + public static string ToWindowsEndings (string s) + { + return s.Replace ("\r\n", "\n").Replace ("\n", "\r\n"); + } static void CopyDir (string src, string dst) { |