Esempio n. 1
0
        public void TooManyPops()
        {
            var root    = Element.Create("div");
            var builder = new LaraBuilder(root);

            builder.Push("button", "red").Pop();
            DomOperationsTesting.Throws <InvalidOperationException>(() => builder.Pop());
        }
Esempio n. 2
0
 public void ElementNeedsTag()
 {
     DomOperationsTesting.Throws <ArgumentException>(() => Element.Create(""));
 }