Sha256: 800981fdb7f302062e7956a023b71f61003587cbf1a81740c5a8e316ac3cd7c1

Contents?: true

Size: 1.57 KB

Versions: 105

Compression:

Stored size: 1.57 KB

Contents

// This file was auto-generated based on version 1.1.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

105 entries across 105 versions & 1 rubygems

Version Path
trackler-2.2.1.70 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.69 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.68 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.67 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.66 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.65 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.64 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.63 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.62 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.61 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.60 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.59 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.58 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.57 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.56 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.55 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.54 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.53 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.52 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.51 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs