UnityCombinatorialStrategy.cs 643 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using NUnit.Framework.Interfaces;
  4. using NUnit.Framework.Internal.Builders;
  5. namespace UnityEngine.TestTools
  6. {
  7. internal class UnityCombinatorialStrategy : CombinatorialStrategy, ICombiningStrategy
  8. {
  9. public new IEnumerable<ITestCaseData> GetTestCases(IEnumerable[] sources)
  10. {
  11. var testCases = base.GetTestCases(sources);
  12. foreach (var testCase in testCases)
  13. {
  14. testCase.GetType().GetProperty("ExpectedResult").SetValue(testCase, new object(), null);
  15. }
  16. return testCases;
  17. }
  18. }
  19. }