public void WithSpecificLocationTemplate_ShouldReturnCorrectString(
            string locationTemplate,
            string baseLocation,
            string expected)
        {
            var options = new RegularLocationTemplateParserOptions();

            var formatter = new RegularLocationTemplateParser(Options.Create(options));

            var result = formatter.SetBase(locationTemplate, baseLocation);

            Assert.Equal(expected, result);
        }
Example #2
0
        public void WithSpecificLocationTemplate_ShouldReturnCorrectString(
            string locationTemplate,
            string className,
            string propertyName,
            string objectId,
            string style,
            string filename,
            string expected)
        {
            var options = new RegularLocationTemplateParserOptions();

            var formatter = new RegularLocationTemplateParser(Options.Create(options));

            var result = formatter.Parse(
                className: className,
                propertyName: propertyName,
                objectId: objectId,
                style: style,
                filename: filename,
                locationTemplate: locationTemplate);

            Assert.Equal(expected, result);
        }