Sha256: 7f0f4de6b2413c4e9f77642be8467af72f9bf1906e045c14166a9aab1d114538

Contents?: true

Size: 804 Bytes

Versions: 7

Compression:

Stored size: 804 Bytes

Contents

using System.Collections.Generic;
using Generators.Input;

namespace Generators.Exercises
{
    public class RailFenceCipher : Exercise
    {
        protected override void UpdateCanonicalData(CanonicalData canonicalData)
        {
            foreach (var canonicalDataCase in canonicalData.Cases)
            {
                canonicalDataCase.ConstructorInput = new Dictionary<string, object>
                {
                    ["rails"] = canonicalDataCase.Properties["rails"]
                };
                canonicalDataCase.Input.Remove("rails");
                canonicalDataCase.TestedMethodType = TestedMethodType.Instance;
                canonicalDataCase.UseVariablesForInput = true;
                canonicalDataCase.UseVariableForExpected = true;
            }
        }
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trackler-2.2.1.22 tracks/csharp/generators/Exercises/RailFenceCipher.cs
trackler-2.2.1.21 tracks/csharp/generators/Exercises/RailFenceCipher.cs
trackler-2.2.1.20 tracks/csharp/generators/Exercises/RailFenceCipher.cs
trackler-2.2.1.19 tracks/csharp/generators/Exercises/RailFenceCipher.cs
trackler-2.2.1.18 tracks/csharp/generators/Exercises/RailFenceCipher.cs
trackler-2.2.1.17 tracks/csharp/generators/Exercises/RailFenceCipher.cs
trackler-2.2.1.16 tracks/csharp/generators/Exercises/RailFenceCipher.cs