예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
            }
        }