Sha256: f3343e3aab197a35891639e33432910e009446cfa93782b51de858155b5a4fc0

Contents?: true

Size: 1.57 KB

Versions: 28

Compression:

Stored size: 1.57 KB

Contents

// This file was auto-generated based on version 1.2.0 of the canonical data.

using Xunit;

public class DifferenceOfSquaresTest
{
    [Fact]
    public void Square_of_sum_1()
    {
        Assert.Equal(1, DifferenceOfSquares.CalculateSquareOfSum(1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Square_of_sum_5()
    {
        Assert.Equal(225, DifferenceOfSquares.CalculateSquareOfSum(5));
    }

    [Fact(Skip = "Remove to run test")]
    public void Square_of_sum_100()
    {
        Assert.Equal(25502500, DifferenceOfSquares.CalculateSquareOfSum(100));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_of_squares_1()
    {
        Assert.Equal(1, DifferenceOfSquares.CalculateSumOfSquares(1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_of_squares_5()
    {
        Assert.Equal(55, DifferenceOfSquares.CalculateSumOfSquares(5));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sum_of_squares_100()
    {
        Assert.Equal(338350, DifferenceOfSquares.CalculateSumOfSquares(100));
    }

    [Fact(Skip = "Remove to run test")]
    public void Difference_of_squares_1()
    {
        Assert.Equal(0, DifferenceOfSquares.CalculateDifferenceOfSquares(1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Difference_of_squares_5()
    {
        Assert.Equal(170, DifferenceOfSquares.CalculateDifferenceOfSquares(5));
    }

    [Fact(Skip = "Remove to run test")]
    public void Difference_of_squares_100()
    {
        Assert.Equal(25164150, DifferenceOfSquares.CalculateDifferenceOfSquares(100));
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.179 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.178 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.177 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.176 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.175 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.174 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.173 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.172 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.171 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.170 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.169 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.167 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.166 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.165 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.164 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.163 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.162 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.161 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.160 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs