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