RegexTest.cs 554 B

12345678910111213141516171819202122232425262728
  1. //
  2. // assembly: System_test
  3. // namespace: MonoTests.System.Text.RegularExpressions
  4. // file: RegexTest.cs
  5. //
  6. // Authors:
  7. // Juraj Skripsky ([email protected])
  8. //
  9. // (c) 2003 Juraj Skripsky
  10. using System;
  11. using System.Text.RegularExpressions;
  12. using NUnit.Framework;
  13. namespace MonoTests.System.Text.RegularExpressions {
  14. [TestFixture]
  15. public class RegexTest {
  16. [Test]
  17. public void Simple () {
  18. char[] c = { (char)32, (char)8212, (char)32 };
  19. string s = new String(c);
  20. Assertion.AssertEquals ("char", true, Regex.IsMatch(s, s));
  21. }
  22. }
  23. }