Sha256: 5f63bb1593e462e6f12d4c605af65cd0043107bd9ab6ba0be9ba764053c2a719
Contents?: true
Size: 2 KB
Versions: 63
Compression:
Stored size: 2 KB
Contents
using System; using NUnit.Framework; [TestFixture] public class DifferenceOfSquaresTests { [Test] public void Test_square_of_sums_to_5() { Assert.That(new Squares(5).SquareOfSums(), Is.EqualTo(225)); } [Ignore("Remove to run test")] [Test] public void Test_sum_of_squares_to_5() { Assert.That(new Squares(5).SumOfSquares(), Is.EqualTo(55)); } [Ignore("Remove to run test")] [Test] public void Test_difference_of_sums_to_5() { Assert.That(new Squares(5).DifferenceOfSquares(), Is.EqualTo(170)); } [Ignore("Remove to run test")] [Test] public void Test_square_of_sums_to_10() { Assert.That(new Squares(10).SquareOfSums(), Is.EqualTo(3025)); } [Ignore("Remove to run test")] [Test] public void Test_sum_of_squares_to_10() { Assert.That(new Squares(10).SumOfSquares(), Is.EqualTo(385)); } [Ignore("Remove to run test")] [Test] public void Test_difference_of_sums_to_10() { Assert.That(new Squares(10).DifferenceOfSquares(), Is.EqualTo(2640)); } [Ignore("Remove to run test")] [Test] public void Test_square_of_sums_to_100() { Assert.That(new Squares(100).SquareOfSums(), Is.EqualTo(25502500)); } [Ignore("Remove to run test")] [Test] public void Test_sum_of_squares_to_100() { Assert.That(new Squares(100).SumOfSquares(), Is.EqualTo(338350)); } [Ignore("Remove to run test")] [Test] public void Test_difference_of_sums_to_100() { Assert.That(new Squares(100).DifferenceOfSquares(), Is.EqualTo(25164150)); } [Ignore("Remove to run test")] [Test] public void Test_difference_of_sums_0() { Assert.That(new Squares(0).DifferenceOfSquares(), Is.EqualTo(0)); } [Ignore("Remove to run test")] [Test] public void Test_negative_numbers_throw_argument_exception() { Assert.That(() => new Squares(-5), Throws.TypeOf<ArgumentException>()); } }
Version data entries
63 entries across 63 versions & 1 rubygems