Ejemplo n.º 1
0
        public void CanSendWithoutReport()
        {
            var sender = new Mock <ISendFeedbackReports>();

            var command = new SendFeedbackReportCommand(sender.Object);

            Assert.IsFalse(command.CanExecute(null));
        }
Ejemplo n.º 2
0
        public void CanSendWithoutSender()
        {
            var command = new SendFeedbackReportCommand(null);

            using (var stream = new MemoryStream())
            {
                Assert.IsFalse(command.CanExecute(stream));
            }
        }