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