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.27 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.26 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.25 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.24 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.23 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.22 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.21 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.20 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.19 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.18 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.17 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.16 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.15 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.14 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.13 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.12 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.11 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.10 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.9 tracks/csharp/generators/Exercises/NthPrimeExercise.cs
trackler-2.1.0.8 tracks/csharp/generators/Exercises/NthPrimeExercise.cs