public void ValidCharacter_False() { KeyboardCharacterInputViewModel viewModel = new KeyboardCharacterInputViewModel { Character = "TESTKEY" }; Assert.IsFalse(viewModel.ValidCharacter); }
public void ValidCharacter_True() { KeyboardCharacterInputViewModel viewModel = new KeyboardCharacterInputViewModel { Character = "Ctrl" }; Assert.IsTrue(viewModel.ValidCharacter); }
public void InputViewModel_SetsCorrectly() { KeyboardCharacterInputViewModel viewModel = new KeyboardCharacterInputViewModel { ViewModel = "KeyboardCharacterInputViewModel" }; Assert.AreEqual(viewModel.ViewModel, "KeyboardCharacterInputViewModel"); }
public void ViewModelParameter() { KeyboardCharacterInputViewModel viewModel = new KeyboardCharacterInputViewModel { ButtonAction = "Press", Character = "Ctrl" }; Assert.AreEqual(viewModel.Parameters, "Ctrl - Key Press"); }
public void View_SetsOnInstantiation() { KeyboardCharacterInputViewModel viewModel = new KeyboardCharacterInputViewModel(); Assert.AreEqual(viewModel.View, "KeyboardCharacterInputView"); }