diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-04-21 02:26:55 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-04-21 18:49:14 +0300 |
commit | f3447b8afb0e5d0e95bcaf9045b788b31396e3fd (patch) | |
tree | 174c34ca3758226fb8228745890d9efc4bf2eb66 /main/tests/UnitTests/MonoDevelop.Core | |
parent | b4adc6e8a57231b07df73575d705984133dcefbd (diff) |
[Core] Add cloning semantics test.
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.Core')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Core/FilePathTests.cs | 7 |
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 } } |