Sha256: 56f735311ba0134a9e7cab24cf1486d40661d4e66f939c9ac551bf7f52382455

Contents?: true

Size: 1.56 KB

Versions: 148

Compression:

Stored size: 1.56 KB

Contents

using System;
using Xunit;

public class DifferenceOfSquaresTests
{
    [Fact]
    public void Test_square_of_sums_to_5()
    {
        Assert.Equal(225, Squares.SquareOfSums(5));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_sum_of_squares_to_5()
    {
        Assert.Equal(55, Squares.SumOfSquares(5));
    }

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

    [Fact(Skip = "Remove to run test")]
    public void Test_square_of_sums_to_10()
    {
        Assert.Equal(3025, Squares.SquareOfSums(10));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_sum_of_squares_to_10()
    {
        Assert.Equal(385, Squares.SumOfSquares(10));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_difference_of_sums_to_10()
    {
        Assert.Equal(2640, Squares.DifferenceOfSquares(10));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_square_of_sums_to_100()
    {
        Assert.Equal(25502500, Squares.SquareOfSums(100));
    }

    [Fact(Skip = "Remove to run test")]
    public void Test_sum_of_squares_to_100()
    {
        Assert.Equal(338350, Squares.SumOfSquares(100));
    }

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

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

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
trackler-2.2.1.45 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.44 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.43 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.42 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.41 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.40 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.39 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.38 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.37 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.36 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.35 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.34 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.33 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.32 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.31 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.30 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.29 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.28 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.27 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs
trackler-2.2.1.26 tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs