Sha256: 63a159f0ffa88099a8ec352098ff6b7e7f3edd468a1d3b01df56ea3a067985bf

Contents?: true

Size: 1.23 KB

Versions: 115

Compression:

Stored size: 1.23 KB

Contents

using NUnit.Framework;

public class ProverbTest
{
    [Test]
    public void Line_one()
    {
        Assert.That(Proverb.Line(1), Is.EqualTo("For want of a nail the shoe was lost."));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Line_four()
    {
        Assert.That(Proverb.Line(4), Is.EqualTo("For want of a rider the message was lost."));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void Line_seven()
    {
        Assert.That(Proverb.Line(7), Is.EqualTo("And all for the want of a horseshoe nail."));
    }

    [Ignore("Remove to run test")]
    [Test]
    public void All_lines()
    {
        const string expected = "For want of a nail the shoe was lost.\n" +
                                "For want of a shoe the horse was lost.\n" +
                                "For want of a horse the rider was lost.\n" +
                                "For want of a rider the message was lost.\n" +
                                "For want of a message the battle was lost.\n" +
                                "For want of a battle the kingdom was lost.\n" +
                                "And all for the want of a horseshoe nail.";

        Assert.That(Proverb.AllLines(), Is.EqualTo(expected));
    }
}

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
trackler-2.0.8.14 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.13 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.12 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.11 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.10 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.9 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.8 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.7 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.6 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.5 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.4 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.3 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.2 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.8.1 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.7.0 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.6.44 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.6.43 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.6.42 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.6.41 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.0.6.40 tracks/csharp/exercises/proverb/ProverbTest.cs