Example #1
0
 public void Scores_other_very_short_word()
 {
     Assert.That(Scrabble.Score("f"), Is.EqualTo(4));
 }
Example #2
0
 public void Null_scores_zero()
 {
     Assert.That(Scrabble.Score(null), Is.EqualTo(0));
 }
Example #3
0
 public void Scores_very_short_word()
 {
     Assert.That(Scrabble.Score("a"), Is.EqualTo(1));
 }
Example #4
0
 public void Entire_alphabet()
 {
     Assert.Equal(87, Scrabble.Score("abcdefghijklmnopqrstuvwxyz"));
 }
Example #5
0
 public void Whitespace_scores_zero()
 {
     Assert.That(Scrabble.Score(" \t\n"), Is.EqualTo(0));
 }
Example #6
0
 public void Scores_are_case_insensitive()
 {
     Assert.That(Scrabble.Score("OXYPHENBUTAZONE"), Is.EqualTo(41));
 }
Example #7
0
 public void Convenient_scoring()
 {
     Assert.That(Scrabble.Score("alacrity"), Is.EqualTo(13));
 }
Example #8
0
 public void Simple_word_scores_the_number_of_letters()
 {
     Assert.Equal(6, Scrabble.Score("street"));
 }
Example #9
0
 public void Complicated_word_scores_more()
 {
     Assert.Equal(22, Scrabble.Score("quirky"));
 }
Example #10
0
 public void Scores_very_short_word()
 {
     Assert.Equal(1, Scrabble.Score("a"));
 }
Example #11
0
 public void Scores_other_very_short_word()
 {
     Assert.Equal(4, Scrabble.Score("f"));
 }
Example #12
0
 public void Null_scores_zero()
 {
     Assert.Equal(0, Scrabble.Score(null));
 }
Example #13
0
 public void Whitespace_scores_zero()
 {
     Assert.Equal(0, Scrabble.Score(" \t\n"));
 }
Example #14
0
 public void Entire_alphabet()
 {
     Assert.That(Scrabble.Score("abcdefghijklmnopqrstuvwxyz"), Is.EqualTo(87));
 }
Example #15
0
 public void Simple_word_scores_the_number_of_letters()
 {
     Assert.That(Scrabble.Score("street"), Is.EqualTo(6));
 }
Example #16
0
 public void Scores_are_case_insensitive()
 {
     Assert.Equal(41, Scrabble.Score("OXYPHENBUTAZONE"));
 }
Example #17
0
 public void Complicated_word_scores_more()
 {
     Assert.That(Scrabble.Score("quirky"), Is.EqualTo(22));
 }
Example #18
0
 public void Empty_word_scores_zero()
 {
     Assert.Equal(0, Scrabble.Score(""));
 }
Example #19
0
 public void Empty_word_scores_zero()
 {
     Assert.That(Scrabble.Score(""), Is.EqualTo(0));
 }
Example #20
0
 public void Scores_are_case_insensitive()
 {
     Assert.That(Scrabble.Score("MULTIBILLIONAIRE"), Is.EqualTo(20));
 }