Sha256: c78ccad6a01b513dbd99443857f0066b127e4bd219a9bdd26cdfd1c335fa1d5f
Contents?: true
Size: 1.33 KB
Versions: 115
Compression:
Stored size: 1.33 KB
Contents
using Xunit; public class ScrabbleScoreTest { [Fact] public void Empty_word_scores_zero() { Assert.Equal(0, Scrabble.Score("")); } [Fact(Skip = "Remove to run test")] public void Whitespace_scores_zero() { Assert.Equal(0, Scrabble.Score(" \t\n")); } [Fact(Skip = "Remove to run test")] public void Null_scores_zero() { Assert.Equal(0, Scrabble.Score(null)); } [Fact(Skip = "Remove to run test")] public void Scores_very_short_word() { Assert.Equal(1, Scrabble.Score("a")); } [Fact(Skip = "Remove to run test")] public void Scores_other_very_short_word() { Assert.Equal(4, Scrabble.Score("f")); } [Fact(Skip = "Remove to run test")] public void Simple_word_scores_the_number_of_letters() { Assert.Equal(6, Scrabble.Score("street")); } [Fact(Skip = "Remove to run test")] public void Complicated_word_scores_more() { Assert.Equal(22, Scrabble.Score("quirky")); } [Fact(Skip = "Remove to run test")] public void Scores_are_case_insensitive() { Assert.Equal(41, Scrabble.Score("OXYPHENBUTAZONE")); } [Fact(Skip = "Remove to run test")] public void Entire_alphabet() { Assert.Equal(87, Scrabble.Score("abcdefghijklmnopqrstuvwxyz")); } }
Version data entries
115 entries across 115 versions & 1 rubygems