public void Domain_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new MailRuGroupsWidget().Domain(null));
      Assert.Throws<ArgumentException>(() => new MailRuGroupsWidget().Domain(string.Empty));

      var widget = new MailRuGroupsWidget();
      Assert.Null(widget.Domain());
      Assert.True(ReferenceEquals(widget.Domain("domain"), widget));
      Assert.Equal("domain", widget.Domain());
    }
コード例 #2
0
        public void Domain_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new MailRuGroupsWidget().Domain(null));
            Assert.Throws <ArgumentException>(() => new MailRuGroupsWidget().Domain(string.Empty));

            var widget = new MailRuGroupsWidget();

            Assert.Null(widget.Domain());
            Assert.True(ReferenceEquals(widget.Domain("domain"), widget));
            Assert.Equal("domain", widget.Domain());
        }
 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());
 }
コード例 #4
0
        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());
        }