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