Sha256: 435bb397ba26b69a4c88e8180312e228bc9aeb9d8fe02185dbbfbde2390a8d84
Contents?: true
Size: 1.74 KB
Versions: 15
Compression:
Stored size: 1.74 KB
Contents
// This file was auto-generated based on version 1.1.0 of the canonical data. using Xunit; public class ProverbTest { [Fact] public void Zero_pieces() { Assert.Empty(Proverb.Recite(new string[] { })); } [Fact(Skip = "Remove to run test")] public void One_piece() { Assert.Equal(new[] { "And all for the want of a nail." }, Proverb.Recite(new[] { "nail" })); } [Fact(Skip = "Remove to run test")] public void Two_pieces() { Assert.Equal(new[] { "For want of a nail the shoe was lost.", "And all for the want of a nail." }, Proverb.Recite(new[] { "nail", "shoe" })); } [Fact(Skip = "Remove to run test")] public void Three_pieces() { Assert.Equal(new[] { "For want of a nail the shoe was lost.", "For want of a shoe the horse was lost.", "And all for the want of a nail." }, Proverb.Recite(new[] { "nail", "shoe", "horse" })); } [Fact(Skip = "Remove to run test")] public void Full_proverb() { Assert.Equal(new[] { "For want of a nail the shoe was lost.", "For want of a shoe the horse was lost.", "For want of a horse the rider was lost.", "For want of a rider the message was lost.", "For want of a message the battle was lost.", "For want of a battle the kingdom was lost.", "And all for the want of a nail." }, Proverb.Recite(new[] { "nail", "shoe", "horse", "rider", "message", "battle", "kingdom" })); } [Fact(Skip = "Remove to run test")] public void Four_pieces_modernized() { Assert.Equal(new[] { "For want of a pin the gun was lost.", "For want of a gun the soldier was lost.", "For want of a soldier the battle was lost.", "And all for the want of a pin." }, Proverb.Recite(new[] { "pin", "gun", "soldier", "battle" })); } }
Version data entries
15 entries across 15 versions & 1 rubygems