Sha256: 330b739d7b775f6bd846f9c564004bb88398002398df226fe0e325ffa596cdd7

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

using Generators.Input;
using System;

namespace Generators.Exercises
{
    public class CollatzConjecture : Exercise
    {
        protected override void UpdateCanonicalData(CanonicalData canonicalData)
        {
            foreach (var canonicalDataCase in canonicalData.Cases)
            {
                canonicalDataCase.ExceptionThrown = (long)canonicalDataCase.Input["number"] <= 0 ? typeof(ArgumentException) : null;
            }
        }
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trackler-2.2.1.27 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.26 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.25 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.24 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.23 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.22 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.21 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.20 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.19 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.18 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.17 tracks/csharp/generators/Exercises/CollatzConjecture.cs
trackler-2.2.1.16 tracks/csharp/generators/Exercises/CollatzConjecture.cs