public void test_sequence_with_lessthan_2_vowels_is_valid()
 {
     var sequence = new KeypadSequence();
     sequence.Add(Key.A).Add(Key.C).Add(Key.D);
     Assert.IsTrue(sequence.IsValidSequence());
 }
 public void test_sequence_with_more_than_2_vowels_is_invalid()
 {
     var sequence = new KeypadSequence();
     sequence.Add(Key.A).Add(Key.B).Add(Key.E).Add(Key.I);
     Assert.IsFalse(sequence.IsValidSequence());
 }
Esempio n. 3
0
 public KeypadSequence KeyPress(Key k, KeypadSequence sequence)
 {
     sequence.Add(k);
     return sequence;
 }