Sha256: 04e73101bdf941151582ad1aa1cb4ab69a8989ecc6602cee06d882e07c3e42ce

Contents?: true

Size: 1.04 KB

Versions: 116

Compression:

Stored size: 1.04 KB

Contents

using Xunit;

public class SumOfMultiplesTest
{
    [Fact]
    public void Sum_to_1()
    {
        Assert.Equal(0, SumOfMultiples.To(new[] { 3, 5 }, 1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_to_3()
    {
        Assert.Equal(3, SumOfMultiples.To(new[] { 3, 5 }, 4));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_to_10()
    {
        Assert.Equal(23, SumOfMultiples.To(new[] { 3, 5 }, 10));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_to_100()
    {
       Assert.Equal(2318, SumOfMultiples.To(new[] { 3, 5 }, 100));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_to_1000()
    {
        Assert.Equal(233168, SumOfMultiples.To(new[] { 3, 5 }, 1000));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_to_20()
    {
        Assert.Equal(51, SumOfMultiples.To(new [] { 7, 13, 17 }, 20));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_to_10000()
    {
        Assert.Equal(2203160, SumOfMultiples.To(new [] { 43, 47 }, 10000));
    }
}

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.13 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.12 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.11 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.10 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.9 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.8 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.7 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.6 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.5 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.4 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.3 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.2 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.1 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.1.0 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.0.6 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.0.5 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.0.4 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.0.3 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.0.2 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs
trackler-2.2.0.1 tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs