Archive: MatchType=MessageMatch.Regex


MatchType=MessageMatch.Regex
[Test]
[ExpectedException(typeof(ArgumentException),ExpectedMessage="Requested value '?QuestionIdsss'? was not found\\.", MatchType=MessageMatch.Regex)]
public void XXXX()
{
throw new ArgumentException("Requested value 'QuestionIdsss' was not found."); // .NET 2.0
// throw new ArgumentException("Requested value QuestionIdsss was not found."); // .NET 1.1
}

in myApp.build

<target name="test" description="Run NUnit tests" depends="compile">
<nunit2 verbose="true" ailonerror="true"haltonfailure="true" >
<test assemblyname="${testAssembly}" />
</nunit2>
</target>


It runs ok from GUI Nunit, but it is not work on DOS command line. thank for help.


I think you got the wrong forum. This is not a forum for NUnit, NAnt or .NET. It's a forum for NSIS.


sorry, my mistake.