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