Sha256: 58ff821cf1176e50f32131cafbc5010dcdc13e30e589759e04a01d132b332149

Contents?: true

Size: 618 Bytes

Versions: 22

Compression:

Stored size: 618 Bytes

Contents

using System;
using Generators.Output;

namespace Generators.Exercises
{
    public class NthPrime : Exercise
    {
        public NthPrime()
        {
            foreach (var canonicalDataCase in CanonicalData.Cases)
                canonicalDataCase.ExceptionThrown = canonicalDataCase.Expected is bool ? typeof(ArgumentOutOfRangeException) : null;
        }

        protected override TestClass CreateTestClass()
        {
            var testClass = base.CreateTestClass();
            testClass.UsingNamespaces.Add(typeof(ArgumentOutOfRangeException).Namespace);

            return testClass;
        }
    }
}

Version data entries

22 entries across 22 versions & 1 rubygems

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