public void Account_Method() { Assert.Throws<ArgumentNullException>(() => new MailRuGroupsWidget().Account(null)); Assert.Throws<ArgumentException>(() => new MailRuGroupsWidget().Account(string.Empty)); var widget = new MailRuGroupsWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Account_Method() { Assert.Throws <ArgumentNullException>(() => new MailRuGroupsWidget().Account(null)); Assert.Throws <ArgumentException>(() => new MailRuGroupsWidget().Account(string.Empty)); var widget = new MailRuGroupsWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Constructors() { var widget = new MailRuGroupsWidget(); Assert.Null(widget.Account()); Assert.Null(widget.BackgroundColor()); Assert.Null(widget.ButtonColor()); Assert.Null(widget.Domain()); Assert.Null(widget.Height()); Assert.True(widget.Subscribers()); Assert.Null(widget.TextColor()); Assert.Null(widget.Width()); }