You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
891 B
25 lines
891 B
9 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace UnityTest
|
||
|
{
|
||
|
public static class NUnitExtensions
|
||
|
{
|
||
|
public static UnitTestResult UnitTestResult(this NUnit.Core.TestResult result, string logs)
|
||
|
{
|
||
|
return new UnitTestResult
|
||
|
{
|
||
|
Executed = result.Executed,
|
||
|
ResultState = (TestResultState)result.ResultState,
|
||
|
Message = result.Message,
|
||
|
Logs = logs,
|
||
|
StackTrace = result.StackTrace,
|
||
|
Duration = result.Time,
|
||
|
Test = new UnitTestInfo(result.Test.TestName.TestID.ToString()),
|
||
|
IsIgnored = (result.ResultState == NUnit.Core.ResultState.Ignored) || result.Test.RunState == NUnit.Core.RunState.Ignored
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|