Beispiel #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);
     }
 }
Beispiel #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);
            }
        }