public void Size_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ITwitterTweetButtonWidgetExtensions.Size(null, TwitterTweetButtonSize.Large));

            new TwitterTweetButtonWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.Size(TwitterTweetButtonSize.Large), widget));
                Assert.Equal("large", widget.Size());
                Assert.Equal("medium", widget.Size(TwitterTweetButtonSize.Medium).Size());
            });
        }
        public void Language_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ITwitterTweetButtonWidgetExtensions.Language(null, CultureInfo.InvariantCulture));
            Assert.Throws <ArgumentNullException>(() => ITwitterTweetButtonWidgetExtensions.Language(new TwitterTweetButtonWidget(), null));

            new TwitterTweetButtonWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.Language(CultureInfo.CurrentCulture), widget));
                Assert.Equal(CultureInfo.CurrentCulture.TwoLetterISOLanguageName, widget.Language());
            });
        }
        public void RelatedAccounts_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ITwitterTweetButtonWidgetExtensions.RelatedAccounts(null, Enumerable.Empty <string>().ToArray()));
            Assert.Throws <ArgumentNullException>(() => ITwitterTweetButtonWidgetExtensions.RelatedAccounts(new TwitterTweetButtonWidget(), null));

            new TwitterTweetButtonWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.RelatedAccounts(Enumerable.Empty <string>().ToArray()), widget));
                Assert.False(widget.RelatedAccounts().Any());
                Assert.True(widget.RelatedAccounts(new[] { "first", "second" }).RelatedAccounts().SequenceEqual(new[] { "first", "second" }));
            });
        }
        public void CounterPosition_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ITwitterTweetButtonWidgetExtensions.CounterPosition(null, TwitterTweetButtonCountBoxPosition.Horizontal));

            new TwitterTweetButtonWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.CounterPosition(TwitterTweetButtonCountBoxPosition.Horizontal), widget));
                Assert.Equal("horizontal", widget.CounterPosition());
                Assert.Equal("none", widget.CounterPosition(TwitterTweetButtonCountBoxPosition.None).CounterPosition());
                Assert.Equal("vertical", widget.CounterPosition(TwitterTweetButtonCountBoxPosition.Vertical).CounterPosition());
            });
        }