Sha256: 2fe0b7e24387d0b9261eb5cc060be18c6f86b9c36f742b8684bba328860e623e

Contents?: true

Size: 1.16 KB

Versions: 238

Compression:

Stored size: 1.16 KB

Contents

using Xunit;

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

    [Fact(Skip = "Remove to run test")]
    public void Line_four()
    {
        Assert.Equal("For want of a rider the message was lost.", Proverb.Line(4));
    }

    [Fact(Skip = "Remove to run test")]
    public void Line_seven()
    {
        Assert.Equal("And all for the want of a horseshoe nail.", Proverb.Line(7));
    }

    [Fact(Skip = "Remove to run 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.Equal(expected, Proverb.AllLines());
    }
}

Version data entries

238 entries across 238 versions & 1 rubygems

Version Path
trackler-2.2.1.136 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.135 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.134 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.133 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.132 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.131 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.130 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.129 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.128 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.127 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.126 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.125 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.124 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.123 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.122 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.121 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.120 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.119 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.118 tracks/csharp/exercises/proverb/ProverbTest.cs
trackler-2.2.1.117 tracks/csharp/exercises/proverb/ProverbTest.cs