Browse Source

NUnit Test window #726

pull/737/head
ddur 10 years ago
parent
commit
298fdb668c
  1. 3
      src/AddIns/Analysis/UnitTesting/Model/TestBase.cs

3
src/AddIns/Analysis/UnitTesting/Model/TestBase.cs

@ -65,6 +65,9 @@ namespace ICSharpCode.UnitTesting @@ -65,6 +65,9 @@ namespace ICSharpCode.UnitTesting
void ChangeResult(TestResultType newResult)
{
TestResultType oldResult = result;
if (oldResult == TestResultType.Failure && newResult == TestResultType.Success) {
return; // do not revert result from failure to success (Test with data source)
}
if (oldResult != newResult) {
result = newResult;
OnResultChanged(new TestResultTypeChangedEventArgs(oldResult, newResult));

Loading…
Cancel
Save