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