public void GetConvertedContent_WithNo_ExtendedFeature()
        {
            var extendedFeatureModel = A.Fake<IExtendedJiraFeatureModel>();

              var jiraConverter = new JiraConverter(extendedFeatureModel);

              var expected = "| 1 | 20% | 1 3 | 1 4 | 1 5 |\r\n| *2 1* | _2 2_ | _*2 3*_ | 2 4 | 2 5 |\r\n| 3 1 | 3 2 | 3 3 | 3 4 | 3 5 |\r\n| 4 1 | 4 2 | 4 3 | 4 4 | 4 5 |\r\n";
              var result = jiraConverter.GetConvertedContent(Constants.GetTableWithAllFeatures());
              Assert.That(result, Is.EqualTo(expected));
        }
        public void GetConvertedContent_WithNo_ExtendedFeature()
        {
            var extendedFeatureModel = A.Fake <IExtendedJiraFeatureModel>();

            var jiraConverter = new JiraConverter(extendedFeatureModel);

            var expected = "| 1 | 20% | 1 3 | 1 4 | 1 5 |\r\n| *2 1* | _2 2_ | _*2 3*_ | 2 4 | 2 5 |\r\n| 3 1 | 3 2 | 3 3 | 3 4 | 3 5 |\r\n| 4 1 | 4 2 | 4 3 | 4 4 | 4 5 |\r\n";
            var result   = jiraConverter.GetConvertedContent(Constants.GetTableWithAllFeatures());

            Assert.That(result, Is.EqualTo(expected));
        }
        public void GetConvertedContent_WithFirstRowIsHeader_ExtendedFeature()
        {
            var extendedFeatureModel = A.Fake<IExtendedJiraFeatureModel>();
              A.CallTo(() => extendedFeatureModel.FirstRowIsHeader).Returns(true);

              var jiraConverter = new JiraConverter(extendedFeatureModel);

              var expected = "|| 1 || 20% || 1 3 || 1 4 || 1 5 ||\r\n| *2 1* | _2 2_ | _*2 3*_ | 2 4 | 2 5 |\r\n| 3 1 | 3 2 | 3 3 | 3 4 | 3 5 |\r\n| 4 1 | 4 2 | 4 3 | 4 4 | 4 5 |\r\n";
              var result = jiraConverter.GetConvertedContent(Constants.GetTableWithAllFeatures());
              Assert.That(result, Is.EqualTo(expected));
        }
        public void GetConvertedContent_WithFirstRowIsHeader_ExtendedFeature()
        {
            var extendedFeatureModel = A.Fake <IExtendedJiraFeatureModel>();

            A.CallTo(() => extendedFeatureModel.FirstRowIsHeader).Returns(true);

            var jiraConverter = new JiraConverter(extendedFeatureModel);

            var expected = "|| 1 || 20% || 1 3 || 1 4 || 1 5 ||\r\n| *2 1* | _2 2_ | _*2 3*_ | 2 4 | 2 5 |\r\n| 3 1 | 3 2 | 3 3 | 3 4 | 3 5 |\r\n| 4 1 | 4 2 | 4 3 | 4 4 | 4 5 |\r\n";
            var result   = jiraConverter.GetConvertedContent(Constants.GetTableWithAllFeatures());

            Assert.That(result, Is.EqualTo(expected));
        }