Sha256: b0179ab67613bb56c9d533291d69ce5a90bb8f8c0d88e55761a44b84d8d3fec7

Contents?: true

Size: 725 Bytes

Versions: 22

Compression:

Stored size: 725 Bytes

Contents

using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace Generators.Exercises
{
    public class BinarySearch : Exercise
    {
        public BinarySearch()
        {
            foreach (var canonicalDataCase in CanonicalData.Cases)
            {
                canonicalDataCase.ConstructorInput = new Dictionary<string, object>
                {
                    ["array"] = ((JArray)canonicalDataCase.Input["array"]).Values<int>()
                };
                canonicalDataCase.Input.Remove("array");

                canonicalDataCase.UseVariablesForConstructorParameters = true;
                canonicalDataCase.TestedMethodType = TestedMethodType.Instance;
            }
        }
    }
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trackler-2.2.1.12 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.11 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.10 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.9 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.8 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.7 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.6 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.5 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.4 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.3 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.2 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.1 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.1.0 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.6 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.5 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.4 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.3 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.2 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.1 tracks/csharp/generators/Exercises/BinarySearch.cs
trackler-2.2.0.0 tracks/csharp/generators/Exercises/BinarySearch.cs