public void Account_Method() { Assert.Throws<ArgumentNullException>(() => new CackleCommentsCountWidget().Account(null)); Assert.Throws<ArgumentException>(() => new CackleCommentsCountWidget().Account(string.Empty)); var widget = new CackleCommentsCountWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Account_Method() { Assert.Throws <ArgumentNullException>(() => new CackleCommentsCountWidget().Account(null)); Assert.Throws <ArgumentException>(() => new CackleCommentsCountWidget().Account(string.Empty)); var widget = new CackleCommentsCountWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Constructors() { var widget = new CackleCommentsCountWidget(); Assert.Null(widget.Account()); }