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