/
TON618OFF
/
Unity-Project-RTU
Обзор
Документация
Войти
/
TON618OFF
/
Unity-Project-RTU
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Library/PackageCache/com.unity.test-framework@1.1.33/UnityEngine.TestRunner/NUnitExtensions/Attributes/UnityCombinatorialStrategy.cs
20 строк
643 B
TON618OFF
release
03 окт 2024, 22:20
03 окт 2024, 22:20
7c70e9f
Код
Авторство
О чём код?
using System.Collections; using System.Collections.Generic; using NUnit.Framework.Interfaces; using NUnit.Framework.Internal.Builders; namespace UnityEngine.TestTools { internal class UnityCombinatorialStrategy : CombinatorialStrategy, ICombiningStrategy { public new IEnumerable<ITestCaseData> GetTestCases(IEnumerable[] sources) { var testCases = base.GetTestCases(sources); foreach (var testCase in testCases) { testCase.GetType().GetProperty("ExpectedResult").SetValue(testCase, new object(), null); } return testCases; } } }