public void LayoutEngine_Layout_NullContainer_ThrowsNullReferenceException() { var engine = new SubLayoutEngine(); Assert.Throws <NullReferenceException>(() => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty"))); }
public void LayoutEngine_Layout_InvalidContainer_Nop() { var engine = new SubLayoutEngine(); engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty")); }
public void LayoutEngine_Layout_NullContainer_ThrowsArgumentNullException() { var engine = new SubLayoutEngine(); Assert.Throws <ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty"))); }
public void LayoutEngine_Layout_ValidContainer_ReturnsFalse() { var engine = new SubLayoutEngine(); Assert.False(engine.Layout(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty"))); }
public void LayoutEngine_Layout_InvalidContainer_Nop() { var engine = new SubLayoutEngine(); Assert.Throws <NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty"))); }