public void Via_Method() { Assert.Throws <ArgumentNullException>(() => new TwitterTweetButtonWidget().Via(null)); Assert.Throws <ArgumentException>(() => new TwitterTweetButtonWidget().Via(string.Empty)); var widget = new TwitterTweetButtonWidget(); Assert.Null(widget.Via()); Assert.True(ReferenceEquals(widget.Via("via"), widget)); Assert.Equal("via", widget.Via()); }
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 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 Via_Method() { Assert.Throws<ArgumentNullException>(() => new TwitterTweetButtonWidget().Via(null)); Assert.Throws<ArgumentException>(() => new TwitterTweetButtonWidget().Via(string.Empty)); var widget = new TwitterTweetButtonWidget(); Assert.Null(widget.Via()); Assert.True(ReferenceEquals(widget.Via("via"), widget)); Assert.Equal("via", widget.Via()); }