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.151 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.150 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.149 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.148 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.147 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.146 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.145 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.144 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.143 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.142 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.141 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.140 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.139 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.138 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.137 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.136 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.135 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.134 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.133 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.132 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs