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