Sha256: 140e4885214ce993c3a61f9132cfbe4cf30eed8a2d69147bc7361117ac9bddf7
Contents?: true
Size: 789 Bytes
Versions: 5
Compression:
Stored size: 789 Bytes
Contents
// This file was auto-generated based on version 1.0.0 of the canonical data. using Xunit; public class NthPrimeTest { [Fact] public void First_prime() { Assert.Equal(2, NthPrime.Prime(1)); } [Fact(Skip = "Remove to run test")] public void Second_prime() { Assert.Equal(3, NthPrime.Prime(2)); } [Fact(Skip = "Remove to run test")] public void Sixth_prime() { Assert.Equal(13, NthPrime.Prime(6)); } [Fact(Skip = "Remove to run test")] public void Big_prime() { Assert.Equal(104743, NthPrime.Prime(10001)); } [Fact(Skip = "Remove to run test")] public void There_is_no_zeroth_prime() { Assert.Throws<System.ArgumentOutOfRangeException>(() => NthPrime.Prime(0)); } }
Version data entries
5 entries across 5 versions & 1 rubygems