public void Language_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new TwitterFollowButtonWidget().Language(null));
      Assert.Throws<ArgumentException>(() => new TwitterFollowButtonWidget().Language(string.Empty));

      var widget = new TwitterFollowButtonWidget();
      Assert.Null(widget.Language());
      Assert.True(ReferenceEquals(widget.Language("language"), widget));
      Assert.Equal("language", widget.Language());
    }
Exemple #2
0
        public void Language_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new TwitterFollowButtonWidget().Language(null));
            Assert.Throws <ArgumentException>(() => new TwitterFollowButtonWidget().Language(string.Empty));

            var widget = new TwitterFollowButtonWidget();

            Assert.Null(widget.Language());
            Assert.True(ReferenceEquals(widget.Language("language"), widget));
            Assert.Equal("language", widget.Language());
        }
 public void Constructors()
 {
   var widget = new TwitterFollowButtonWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.Language());
   Assert.Null(widget.Size());
   Assert.Null(widget.Alignment());
   Assert.Null(widget.Counter());
   Assert.Null(widget.ScreenName());
   Assert.Null(widget.Suggestions());
   Assert.Null(widget.Width());
 }
Exemple #4
0
        public void Constructors()
        {
            var widget = new TwitterFollowButtonWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.Language());
            Assert.Null(widget.Size());
            Assert.Null(widget.Alignment());
            Assert.Null(widget.Counter());
            Assert.Null(widget.ScreenName());
            Assert.Null(widget.Suggestions());
            Assert.Null(widget.Width());
        }