Exemplo n.º 1
0
        public void GetOutputElement_ContentTypeNone_ReturnsNull()
        {
            var generator     = new StylesheetGenerator();
            var testFieldData = ChrysalisMockFactory.MockIFieldData("TestFieldData", ContentType.None);

            var outputElement = generator.GetOutputElement(testFieldData);

            Assert.Null(outputElement);
        }
Exemplo n.º 2
0
        public void GetOutputElement_InlineData_ReturnsExpectedXsltElement(ContentType fieldContentType, XsltElementType expectedXsltElementType)
        {
            var generator     = new StylesheetGenerator();
            var testFieldData = ChrysalisMockFactory.MockIFieldData("TestFieldData", fieldContentType);

            var outputElement = generator.GetOutputElement(testFieldData);

            Assert.Equal(expectedXsltElementType, outputElement.XsltElementType);
        }