Hello,
Is TestCaseSource compatible with UnityTest?
public class SourceTests
{
[UnityTest]
public IEnumerator TestUnity()
{
Assert.Pass(); //Pass
yield return null;
}
[UnityTest, TestCaseSource(nameof(CaseSource))]
public IEnumerator SourceTestUnity(int a, float b, bool c)
{
Assert.Pass(); //Fail
yield return null;
}
[Test, TestCaseSource(nameof(CaseSource))]
public void SourceTest(int a, float b, bool c)
{
Assert.Pass(); //Pass
}
static object[] CaseSource =
{
new object[] { 12, 3.0f, false },
new object[] { 12, 3.0f, false },
new object[] { 10, 3.0f, false },
};
}
I can use TestCaseSource with regular nunit tests but when I use it with UnityTest I have this error “Method has non-void return value, but no result is expected”
Can I use TestCaseSource somehow with UnityTests?
Thank you