Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestMethod]
- [TestCategory("Unit")]
- public void FlipHorizontalCommand_NoActiveImage_CannotBeExecuted()
- {
- SetupNoActiveImage();
- var canExecute = _vm.FlipHorizontalCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void FlipVerticalCommand_NoActiveImage_CannotBeExecuted()
- {
- SetupNoActiveImage();
- var canExecute = _vm.FlipVerticalCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void RotateCommand_NoActiveImage_CannotBeExecuted()
- {
- SetupNoActiveImage();
- var canExecute = _vm.RotateCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void RemoveCommand_NoActiveImage_CannotBeExecuted()
- {
- SetupNoActiveImage();
- var canExecute = _vm.RemoveCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void FlipHorizontalCommand_ActiveImageAvailable_CanBeExecuted()
- {
- SetupActiveImageAvailable();
- var canExecute = _vm.FlipHorizontalCommand.CanExecute(null);
- canExecute.Should().BeTrue();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void FlipVerticalCommand_ActiveImageAvailable_CanBeExecuted()
- {
- SetupActiveImageAvailable();
- var canExecute = _vm.FlipVerticalCommand.CanExecute(null);
- canExecute.Should().BeTrue();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void RotateCommand_ActiveImageAvailable_CanBeExecuted()
- {
- SetupActiveImageAvailable();
- var canExecute = _vm.RotateCommand.CanExecute(null);
- canExecute.Should().BeTrue();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void RemoveCommand_ActiveImageAvailable_CanBeExecuted()
- {
- SetupActiveImageAvailable();
- var canExecute = _vm.RemoveCommand.CanExecute(null);
- canExecute.Should().BeTrue();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void FlipHorizontalCommand_ActiveImageAvailableButModificationsNotAllowed_CannotBeExecuted()
- {
- SetupActiveImageButDisallowModifications();
- var canExecute = _vm.FlipHorizontalCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void FlipVerticalCommand_ActiveImageAvailableButModificationsNotAllowed_CannotBeExecuted()
- {
- SetupActiveImageButDisallowModifications();
- var canExecute = _vm.FlipVerticalCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void RotateCommand_ActiveImageAvailableButModificationsNotAllowed_CannotBeExecuted()
- {
- SetupActiveImageButDisallowModifications();
- var canExecute = _vm.RotateCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
- [TestMethod]
- [TestCategory("Unit")]
- public void RemoveCommand_ActiveImageAvailableButModificationsNotAllowed_CannotBeExecuted()
- {
- SetupActiveImageButDisallowModifications();
- var canExecute = _vm.RemoveCommand.CanExecute(null);
- canExecute.Should().BeFalse();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement