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