예제 #1
0
        public void Can_not_withdraw_spike_ticket_that_is_done()
        {
            // Arrange
            JiraTicket ticket = new SpikeTicket()
            {
                Status = Status.Done
            };

            // Assert
            Assert.Throws <Exception>(() => ticket.Withdraw(), "This ticket is already complete");
        }
예제 #2
0
        public void Can_report_findings_via_spike_ticket()
        {
            // Arrange
            IInvestigationTicket spike = new SpikeTicket
            {
                Assignee = "Dan",
                Id       = "SAS-12345"
            };

            // Act
            var findings = spike.ReportFindings();

            // Assert
            Assert.AreEqual(findings, "Bug is caused by...");
        }