Beispiel #1
0
        public void ConvertScssOnlyToCss(string scssSelector, string result)
        {
            var scss = ScssBuilder.Create(scssSelector);

            Assert.AreEqual(result, scss.Css);
//            Assert.IsNull(scss.Xpath);
        }
Beispiel #2
0
        public void ConvertScssToXpath(string scssSelector, string result)
        {
            // .Arrange
            // .Act
            var scss = ScssBuilder.Create(scssSelector);

            // .Assert
            Assert.AreEqual(result, scss.Xpath);
            Assert.IsNotNull(scss.Css);
        }
Beispiel #3
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary>
 public Selector(string scss, string frameScss)
     : this(ScssBuilder.Create(scss), ScssBuilder.Create(frameScss))
 {
 }
Beispiel #4
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary>
 public Selector(string scss)
     : this(ScssBuilder.Create(scss), null)
 {
 }