コード例 #1
0
        public void Jira_cat()
        {
            // arrange
            var testName = TestNameBasedOnCurrentTestMethod;

            // act
            Addin.TestStarted(testName);

            // assert
            Written
            .ShouldBeEquivalentTo(new[] { "Related JIRA Issue: CRT-123" });
        }
コード例 #2
0
        public void Other_cat()
        {
            // arrange
            var testName = TestNameBasedOnCurrentTestMethod;

            // act
            Addin.TestStarted(testName);

            // assert
            Written
            .ShouldBeEquivalentTo(new[] { "Test Category: some other stuff" });
        }
コード例 #3
0
        public void No_categories()
        {
            // arrange
            var testName = TestNameBasedOnCurrentTestMethod;

            // act
            Addin.TestStarted(testName);

            // assert
            Written
            .ShouldBeEquivalentTo(new[] { "Test Category: fixture level cat" });
        }
コード例 #4
0
        public void Single_jira_category()
        {
            // arrange
            var testName = TestNameBasedOnCurrentTestMethod;

            // act
            Addin.TestStarted(testName);

            // assert
            Written
            .ShouldBeEquivalentTo(new[] { "Test Category: fixture level cat", "Related JIRA Issue: CRT-123" });
        }
コード例 #5
0
        public void Suite_leval_cat_written_with_each_test()
        {
            // arrange
            var testName = TestNameBasedOnCurrentTestMethod;

            // act
            Addin.TestStarted(testName);
            Addin.TestStarted(testName);

            // assert
            Written
            .ShouldBeEquivalentTo(new[] { "Related JIRA Issue: CRT-123", "Related JIRA Issue: CRT-123" });
        }