private VocabularyMode _vocabularyMode; //宣告 Model #endregion Fields #region Constructors //建構元 public VocabularyPresentationModel(VocabularyMode vocabularyModes) { this._vocabularyMode = vocabularyModes; _vocabularyMode.Initialize(); Initialize(); }
public void SpeechSelectionQuestionTest() { VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值 target.Initialize(); target.CreateNewSelectionQuestion(); target.SpeechSelectionQuestion(); }
public void GetNumberOfVocabularyTest() { VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值 int expected = 2074; // TODO: 初始化為適當值 target.Initialize(); int actual; actual = target.NumberOfVocabulary; Assert.AreEqual(expected, actual); }
public void RestTimerTest() { VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值 for(int i =0;i<4324;i++) target.AddOneSecond(); target.RestTimer(); Assert.AreEqual("00:00:00", target.TimeText); }
public VocabularyPresentationModel(VocabularyMode vocabularyModes) //建構元 { this._vocabularyMode = vocabularyModes; _vocabularyMode.Initialize(); Initialize(); }