Skip to content
Prev Previous commit
Next Next commit
Remove debug unit tests
  • Loading branch information
Prashanth Govindarajan committed Jul 14, 2021
commit d8e73cca2ea4ac8409e03cc262067ed491ff8e57
Original file line number Diff line number Diff line change
Expand Up @@ -1178,31 +1178,5 @@ public void Synchronized()

AssertExtensions.Throws<ArgumentNullException>("inner", () => System.Text.RegularExpressions.Match.Synchronized(null));
}

[Fact]
public void Test()
{

// Continue from here. AFAICT the code is complete. Need to start testing it.
Debugger.Launch();
Regex.CompileToAssembly(new[]
{
new RegexCompilationInfo("hi.*foo", RegexOptions.None, "hifooabc", "", false),
}, new AssemblyName("testregex"));

var regex = new Regex(@"hi.*foo", RegexOptions.Compiled);
var match = regex.Match("hifooabout");
Assert.True(match.Success);
Assert.Equal("hifoo", match.Value);
}

[Fact]
public void TestI()
{
Debugger.Launch();
var regex = new Regex(".*[abc]string");
var match1 = regex.Match("fooastring");
var match2 = regex.Match("foostring");
}
}
}