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 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 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()); }