public void TooManyPops() { var root = Element.Create("div"); var builder = new LaraBuilder(root); builder.Push("button", "red").Pop(); DomOperationsTesting.Throws <InvalidOperationException>(() => builder.Pop()); }
public void ElementNeedsTag() { DomOperationsTesting.Throws <ArgumentException>(() => Element.Create("")); }