Beispiel #1
0
        public void RelatedAccounts_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new TwitterTweetButtonWidget().RelatedAccounts(null));

            var widget = new TwitterTweetButtonWidget();

            Assert.False(widget.RelatedAccounts().Any());
            var accounts = new[] { "first", "second", "third" };

            Assert.True(ReferenceEquals(widget.RelatedAccounts(accounts), widget));
            Assert.True(widget.RelatedAccounts().SequenceEqual(accounts));
        }
 public void Constructors()
 {
   var widget = new TwitterTweetButtonWidget();
   Assert.Null(widget.Url());
   Assert.Null(widget.Language());
   Assert.Null(widget.Text());
   Assert.Null(widget.Via());
   Assert.Null(widget.Size());
   Assert.Null(widget.CountUrl());
   Assert.Null(widget.CounterPosition());
   Assert.Null(widget.Suggestions());
   Assert.False(widget.HashTags().Any());
   Assert.False(widget.RelatedAccounts().Any());
 }
Beispiel #3
0
        public void Constructors()
        {
            var widget = new TwitterTweetButtonWidget();

            Assert.Null(widget.Url());
            Assert.Null(widget.Language());
            Assert.Null(widget.Text());
            Assert.Null(widget.Via());
            Assert.Null(widget.Size());
            Assert.Null(widget.CountUrl());
            Assert.Null(widget.CounterPosition());
            Assert.Null(widget.Suggestions());
            Assert.False(widget.HashTags().Any());
            Assert.False(widget.RelatedAccounts().Any());
        }
    public void RelatedAccounts_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new TwitterTweetButtonWidget().RelatedAccounts(null));

      var widget = new TwitterTweetButtonWidget();
      Assert.False(widget.RelatedAccounts().Any());
      var accounts = new[] { "first", "second", "third" };
      Assert.True(ReferenceEquals(widget.RelatedAccounts(accounts), widget));
      Assert.True(widget.RelatedAccounts().SequenceEqual(accounts));
    }