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