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