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