private static IEnumerable <TestJson> AllSelectors(TestJson testJson) { foreach (SelectorType value in Enum.GetValues <SelectorType>()) { TestJson withSelector = (TestJson)testJson.Clone(); withSelector.SelectorType = value; yield return(withSelector); } }
private static IEnumerable <TestJson> AllGasLimits(TestJson testJson) { long[] ratios = { 33, 100 }; foreach (long ratio in ratios) { TestJson withRatio = (TestJson)testJson.Clone(); withRatio.MaxGasLimitRatio = ratio; yield return(withRatio); } }