Sha256: 8497eec98be7a9520d15c0d1a089686412105be1827c6af521d1b49ecd7b439d

Contents?: true

Size: 595 Bytes

Versions: 28

Compression:

Stored size: 595 Bytes

Contents

using System;
using Generators.Input;

namespace Generators.Exercises
{
    public class Change : GeneratorExercise
    {
        protected override void UpdateCanonicalData(CanonicalData canonicalData)
        {
            foreach (var canonicalDataCase in canonicalData.Cases)
            {
                canonicalDataCase.UseVariablesForInput = true;
                canonicalDataCase.UseVariableForExpected = true;

                if (canonicalDataCase.Expected is int)
                    canonicalDataCase.ExceptionThrown = typeof(ArgumentException);
            }
        }
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.158 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.157 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.156 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.155 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.154 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.153 tracks/csharp/generators/Exercises/Change.cs
trackler-2.2.1.152 tracks/csharp/generators/Exercises/Change.cs