Sha256: 427fc1d152b4e014d1ac0c788ff38f820d28dfd5170e2110f9f86e434f78679c

Contents?: true

Size: 719 Bytes

Versions: 69

Compression:

Stored size: 719 Bytes

Contents

using System;
using Generators.Data;
using Generators.Methods;

namespace Generators.Exercises
{
    public class NthPrimeExercise : EqualityExercise
    {
        public NthPrimeExercise() : base("nth-prime")
        {
        }

        protected override TestMethodOptions CreateTestMethodOptions(CanonicalData canonicalData, CanonicalDataCase canonicalDataCase, int index)
        {
            var testMethodOptions = base.CreateTestMethodOptions(canonicalData, canonicalDataCase, index);
            testMethodOptions.ExceptionType = typeof(ArgumentOutOfRangeException);
            testMethodOptions.ThrowExceptionWhenExpectedValueEquals = x => x is bool;

            return testMethodOptions;
        }
    }
}

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.1.0.48 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.47 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.46 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.45 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.44 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.43 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.42 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.41 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.40 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.39 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.38 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.37 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.36 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.34 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.33 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.32 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.31 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.30 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.29 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.28 tracks/csharp/generators/Exercises/NthPrimeExercise.cs