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