using System.Collections.Generic; using Generators.Input; namespace Generators.Exercises { public class BinarySearch : Exercise { protected override void UpdateCanonicalData(CanonicalData canonicalData) { foreach (var canonicalDataCase in canonicalData.Cases) { canonicalDataCase.ConstructorInput = new Dictionary { ["array"] = canonicalDataCase.Input["array"].ConvertToEnumerable() }; canonicalDataCase.Input.Remove("array"); canonicalDataCase.UseVariablesForConstructorParameters = true; canonicalDataCase.TestedMethodType = TestedMethodType.Instance; } } } }