public void Width_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestBoardWidget().Width(null)); Assert.Throws<ArgumentException>(() => new PinterestBoardWidget().Width(string.Empty)); var widget = new PinterestBoardWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }
public void Width_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestBoardWidget().Width(null)); Assert.Throws <ArgumentException>(() => new PinterestBoardWidget().Width(string.Empty)); var widget = new PinterestBoardWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }
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()); }