public void Url_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookSendButtonWidget().Url(null)); Assert.Throws<ArgumentException>(() => new FacebookSendButtonWidget().Url(string.Empty)); var widget = new FacebookSendButtonWidget(); Assert.Null(widget.Url()); Assert.True(ReferenceEquals(widget.Url("url"), widget)); Assert.Equal("url", widget.Url()); }
public void Url_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookSendButtonWidget().Url(null)); Assert.Throws <ArgumentException>(() => new FacebookSendButtonWidget().Url(string.Empty)); var widget = new FacebookSendButtonWidget(); Assert.Null(widget.Url()); Assert.True(ReferenceEquals(widget.Url("url"), widget)); Assert.Equal("url", widget.Url()); }
public void Constructors() { var widget = new FacebookSendButtonWidget(); Assert.Null(widget.Url()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.Null(widget.ColorScheme()); Assert.Null(widget.KidsMode()); Assert.Null(widget.TrackLabel()); }