public void Account_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new CackleLatestCommentsWidget().Account(null));
      Assert.Throws<ArgumentException>(() => new CackleLatestCommentsWidget().Account(string.Empty));

      var widget = new CackleLatestCommentsWidget();
      Assert.Null(widget.Account());
      Assert.True(ReferenceEquals(widget.Account("account"), widget));
      Assert.Equal("account", widget.Account());
    }
Esempio n. 2
0
        public void Account_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new CackleLatestCommentsWidget().Account(null));
            Assert.Throws <ArgumentException>(() => new CackleLatestCommentsWidget().Account(string.Empty));

            var widget = new CackleLatestCommentsWidget();

            Assert.Null(widget.Account());
            Assert.True(ReferenceEquals(widget.Account("account"), widget));
            Assert.Equal("account", widget.Account());
        }
 public void Constructors()
 {
   var widget = new CackleLatestCommentsWidget();
   Assert.Null(widget.Account());
   Assert.Equal(32, widget.AvatarSize());
   Assert.Equal(5, widget.Max());
   Assert.Equal(150, widget.TextSize());
   Assert.Equal(40, widget.TitleSize());
 }
Esempio n. 4
0
        public void Constructors()
        {
            var widget = new CackleLatestCommentsWidget();

            Assert.Null(widget.Account());
            Assert.Equal(32, widget.AvatarSize());
            Assert.Equal(5, widget.Max());
            Assert.Equal(150, widget.TextSize());
            Assert.Equal(40, widget.TitleSize());
        }