Ejemplo 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());
        }
Ejemplo n.º 2
0
 public void ElementNeedsTag()
 {
     DomOperationsTesting.Throws <ArgumentException>(() => Element.Create(""));
 }