暫無描述
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.

UnityCombinatorialStrategy.cs 657B

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