public void WhenDescriptionSetToMultipleSentences_ThenLineBreaksAreAdded() { var viewModel = new SshAuthenticationPromptViewModel(); viewModel.Description = "first. second. third."; Assert.AreEqual("first.\nsecond.\nthird.", viewModel.Description); }
public void WhenIsPasswordMaskedSet_ThenNotificationIsRaised() { var viewModel = new SshAuthenticationPromptViewModel(); AssertEx.RaisesPropertyChangedNotification( viewModel, () => viewModel.IsPasswordMasked = true, v => v.IsPasswordMasked); }
public void WhenDescriptionSet_ThenNotificationIsRaised() { var viewModel = new SshAuthenticationPromptViewModel(); AssertEx.RaisesPropertyChangedNotification( viewModel, () => viewModel.Description = "test", v => v.Description); }
public void WhenInputSet_ThenNotificationIsRaised() { var viewModel = new SshAuthenticationPromptViewModel(); AssertEx.RaisesPropertyChangedNotification( viewModel, () => viewModel.Input = "test", v => v.Input); AssertEx.RaisesPropertyChangedNotification( viewModel, () => viewModel.Input = "test", v => v.IsOkButtonEnabled); }