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()); }
public void Id_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestBoardWidget().Id(null)); Assert.Throws<ArgumentException>(() => new PinterestBoardWidget().Id(string.Empty)); var widget = new PinterestBoardWidget(); Assert.Null(widget.Id()); Assert.True(ReferenceEquals(widget.Id("id"), widget)); Assert.Equal("id", widget.Id()); }
public void Image_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestBoardWidget().Image(null)); Assert.Throws <ArgumentException>(() => new PinterestBoardWidget().Image(string.Empty)); var widget = new PinterestBoardWidget(); Assert.Null(widget.Image()); Assert.True(ReferenceEquals(widget.Image("image"), widget)); Assert.Equal("image", widget.Image()); }
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 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()); }