| 12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // assembly: System_test
- // namespace: MonoTests.System.Text.RegularExpressions
- // file: PerlTest.cs
- //
- // Authors:
- // Dan Lewis ([email protected])
- // Martin Willemoes Hansen ([email protected])
- //
- // (c) 2002 Dan Lewis
- // (c) 2003 Martin Willemoes Hansen
- using System;
- using System.Text.RegularExpressions;
- using NUnit.Framework;
- namespace MonoTests.System.Text.RegularExpressions {
-
- [TestFixture]
- public class PerlTest {
- [Test]
- public void Trials () {
- foreach (RegexTrial trial in PerlTrials.trials) {
- string actual = trial.Execute ();
- if (actual != trial.Expected) {
- Assertion.Fail (
- trial.ToString () +
- "Expected " + trial.Expected +
- " but got " + actual
- );
- }
- }
- }
- }
- }
|