NUnit 3.0 TestCase const custom object arguments
问题 I've written the class SomeObject and I want to define a const instance of this object to keep/reuse in my TestCase s. How should I rewrite the code below to achieve this behavior? [TestFixture] public class SomeObjectTests { private const SomeObject item0 = new SomeObject(0.0); // doesn't work [TestCase(item0, ExpectedResult = 0.0)] public double TestSomeObjectValue(SomeObject so) { return so.Value; } [TestCase(item0, ExpectedResult = "0.0")] public string TestSomeObjectValueString