public void LL_NoNulls() { Action add = () => ListLayout.Add(null); Action insert = () => ListLayout.Insert(3, null); add.Should().Throw <ArgumentNullException>(); insert.Should().Throw <ArgumentNullException>(); }
protected void Add(IWidget widget) { ListLayout.Add(widget); }