public void Height_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestBoardWidget().Height(null)); Assert.Throws<ArgumentException>(() => new PinterestBoardWidget().Height(string.Empty)); var widget = new PinterestBoardWidget(); Assert.Null(widget.Height()); Assert.True(ReferenceEquals(widget.Height("height"), widget)); Assert.Equal("height", widget.Height()); }
public void Height_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestBoardWidget().Height(null)); Assert.Throws <ArgumentException>(() => new PinterestBoardWidget().Height(string.Empty)); var widget = new PinterestBoardWidget(); Assert.Null(widget.Height()); Assert.True(ReferenceEquals(widget.Height("height"), widget)); Assert.Equal("height", widget.Height()); }
public void Constructors() { var widget = new PinterestBoardWidget(); Assert.Null(widget.Account()); Assert.Null(widget.Height()); Assert.Null(widget.Width()); Assert.Null(widget.Id()); Assert.Null(widget.Image()); }
public void Constructors() { var widget = new PinterestBoardWidget(); Assert.Null(widget.Account()); Assert.Null(widget.Height()); Assert.Null(widget.Width()); Assert.Null(widget.Id()); Assert.Null(widget.Image()); }