Пример #1
0
 public void RememberNextStateTest()
 {
     WordAutomat w = new WordAutomat();
     w.word = WordEngine.GetWord();
     Remember s = new Remember(w);
     s.NextState(StateMsg.yes);
     Assert.IsTrue(Object.ReferenceEquals(w.state.GetType(), (new SelectWord(w)).GetType()));
     s.NextState(StateMsg.no);
     Assert.IsTrue(Object.ReferenceEquals(w.state.GetType(), (new SelectWord(w)).GetType()));
 }
Пример #2
0
 public void RemeberStateTest()
 {
     WordAutomat w = new WordAutomat();
     w.word = WordEngine.GetWord();
     AppSettings.SetSound(false);
     Remember s = new Remember(w);
     WordState st = s.GetState();
     Assert.AreEqual(true, st.B1);
     Assert.AreEqual(true, st.B2);
     Assert.AreEqual("Не помню", st.Button1);
     Assert.AreEqual("Далее", st.Button2);
     Assert.AreEqual(true, st.E);
     Assert.AreEqual(true, st.R);
     Assert.AreEqual(true, st.S);
 }