public void Posts_Method() { var widget = new FacebookCommentsWidget(); Assert.Null(widget.Posts()); Assert.True(ReferenceEquals(widget.Posts(1), widget)); Assert.Equal(1, widget.Posts().Value); }
public void Mobile_Method() { var widget = new FacebookCommentsWidget(); Assert.Null(widget.Mobile()); Assert.True(ReferenceEquals(widget.Mobile(true), widget)); Assert.True(widget.Mobile().Value); }
public void Order_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookCommentsWidget().Order(null)); Assert.Throws<ArgumentException>(() => new FacebookCommentsWidget().Order(string.Empty)); var widget = new FacebookCommentsWidget(); Assert.Null(widget.Order()); Assert.True(ReferenceEquals(widget.Order("order"), widget)); Assert.Equal("order", widget.Order()); }
public void ColorScheme_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookCommentsWidget().ColorScheme(null)); Assert.Throws<ArgumentException>(() => new FacebookCommentsWidget().ColorScheme(string.Empty)); var widget = new FacebookCommentsWidget(); Assert.Null(widget.ColorScheme()); Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget)); Assert.Equal("colorScheme", widget.ColorScheme()); }
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()); }
public void Order_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookCommentsWidget().Order(null)); Assert.Throws <ArgumentException>(() => new FacebookCommentsWidget().Order(string.Empty)); var widget = new FacebookCommentsWidget(); Assert.Null(widget.Order()); Assert.True(ReferenceEquals(widget.Order("order"), widget)); Assert.Equal("order", widget.Order()); }
public void ColorScheme_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookCommentsWidget().ColorScheme(null)); Assert.Throws <ArgumentException>(() => new FacebookCommentsWidget().ColorScheme(string.Empty)); var widget = new FacebookCommentsWidget(); Assert.Null(widget.ColorScheme()); Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget)); Assert.Equal("colorScheme", widget.ColorScheme()); }
public void Width_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookCommentsWidget().Width(null)); Assert.Throws<ArgumentException>(() => new FacebookCommentsWidget().Width(string.Empty)); var widget = new FacebookCommentsWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }