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