Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-04-21 02:26:55 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-04-21 18:49:14 +0300
commitf3447b8afb0e5d0e95bcaf9045b788b31396e3fd (patch)
tree174c34ca3758226fb8228745890d9efc4bf2eb66 /main/tests/UnitTests/MonoDevelop.Core
parentb4adc6e8a57231b07df73575d705984133dcefbd (diff)
[Core] Add cloning semantics test.
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.Core')
-rw-r--r--main/tests/UnitTests/MonoDevelop.Core/FilePathTests.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Core/FilePathTests.cs b/main/tests/UnitTests/MonoDevelop.Core/FilePathTests.cs
index 5ffe4d24c6..1cf90ee8d0 100644
--- a/main/tests/UnitTests/MonoDevelop.Core/FilePathTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.Core/FilePathTests.cs
@@ -41,6 +41,13 @@ namespace MonoDevelop.Core
Assert.That (FilePath.GetInvalidPathChars (), Is.EquivalentTo (Path.GetInvalidPathChars ().Concat ("#%&")));
}
+ [Test]
+ public void InvalidCharactersAreCloned ()
+ {
+ Assert.AreNotSame (FilePath.GetInvalidFileNameChars (), FilePath.GetInvalidFileNameChars ());
+ Assert.AreNotSame (FilePath.GetInvalidPathChars (), FilePath.GetInvalidPathChars ());
+ }
+
// TODO: more tests
}
}