Binboo.Jira.Tests.Tests.Commands.IssueCommandTestCase.TestNonExistingIssue C# (CSharp) Method

TestNonExistingIssue() private method

private TestNonExistingIssue ( ) : void
return void
        public void TestNonExistingIssue()
        {
            RemoteIssue issue = new RemoteIssue { key = "BTST-123", status = "2", created = new DateTime(2009, 01, 05), summary = "summary" };
            using (var commandMock = NewCommand<IssueCommand>(mock => mock.Setup(proxy => proxy.GetIssue("BTST-123")).Throws(new JiraProxyException("Failed to get issue: " + issue.key, new Exception("")))))
            {
                Mock<IContext> contextMock = ContextMockFor("issue-user", issue.key);

                var result = commandMock.Process(contextMock.Object);

                Assert.AreEqual("Failed to get issue: " + issue.key + "\r\n\r\n", result.HumanReadable);
                Assert.AreEqual(issue.key, result.PipeValue);
            }
        }