Ejemplo n.º 1
0
        public void TemplateParser_ReturnValueForMultiValueMulitpleValues()
        {
            var parser = new TemplateParser(MultiValue, ItemCT);
            Assert.IsTrue(parser.ToString().Equals("Test Site V1.0"));

            parser = new TemplateParser(MultiValue, BidCT);
            Assert.IsTrue(parser.ToString().Equals("Test Site V2.0"));
        }
Ejemplo n.º 2
0
        public void TemplateParser_ReturnRawValueForNullContentType()
        {
            var parser = new TemplateParser(MultiValue, null);
            Assert.IsTrue(parser.ToString().Equals(MultiValue));

            parser = new TemplateParser(SingleValue, null);
            Assert.IsTrue(parser.ToString().Equals(SingleValue));
        }
Ejemplo n.º 3
0
 public void TemplateParser_ReturnValueForMultiValueOneValue()
 {
     var parser = new TemplateParser(CtValue, ItemCT);
     Assert.IsTrue(parser.ToString().Equals("Test Site V1.0"));
 }
Ejemplo n.º 4
0
 public void TemplateParser_ReturnsRawValueForNonExistentContentType()
 {
     var parser = new TemplateParser(MultiValue, "document");
     Assert.IsTrue(parser.ToString().Equals(MultiValue));
 }
Ejemplo n.º 5
0
 public void TemplateParser_ReturnSingleValueForSingleValue()
 {
     var parser = new TemplateParser(SingleValue, ItemCT);
     Assert.IsTrue(parser.ToString().Equals(SingleValue));
 }
Ejemplo n.º 6
0
 public void TemplateParser_ReturnNullForNullRawValue()
 {
     var parser = new TemplateParser(null, "document");
     Assert.IsTrue(string.IsNullOrEmpty(parser.ToString()));
 }
Ejemplo n.º 7
0
 public void TemplateParser_ExtractSingleValueBasedOnContentType()
 {
     var parser = new TemplateParser(CtValue, ItemCT);
     Assert.IsTrue(parser.ToString().Equals("Test Site V1.0"));
 }
Ejemplo n.º 8
0
 public void TemplateParser_ExtractValueForNullValue()
 {
     var parser = new TemplateParser(null, "document");
     Assert.IsTrue(string.IsNullOrEmpty(parser.ToString()));
 }
Ejemplo n.º 9
0
 public void TemplateParser_ExtractSingleTemplateTitle()
 {
     var parser = new TemplateParser(SingleValue, ItemCT);
     Assert.IsTrue(parser.ToString().Equals(SingleValue));
 }
Ejemplo n.º 10
0
        public void TemplateParser_ReturnEmptyForEmptyRawValue()
        {
            var parser = new TemplateParser(string.Empty, "document");

            Assert.IsTrue(string.IsNullOrEmpty(parser.ToString()));
        }
Ejemplo n.º 11
0
        public void TemplateParser_ReturnsRawValueForNonExistentContentType()
        {
            var parser = new TemplateParser(MultiValue, "document");

            Assert.IsTrue(parser.ToString().Equals(MultiValue));
        }
Ejemplo n.º 12
0
        public void TemplateParser_ReturnValueForMultiValueOneValue()
        {
            var parser = new TemplateParser(CtValue, ItemCT);

            Assert.IsTrue(parser.ToString().Equals("Test Site V1.0"));
        }
Ejemplo n.º 13
0
        public void TemplateParser_ReturnSingleValueForSingleValue()
        {
            var parser = new TemplateParser(SingleValue, ItemCT);

            Assert.IsTrue(parser.ToString().Equals(SingleValue));
        }