public void ColorScheme_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookLikeButtonWidget().ColorScheme(null)); Assert.Throws<ArgumentException>(() => new FacebookLikeButtonWidget().ColorScheme(string.Empty)); var widget = new FacebookLikeButtonWidget(); Assert.Null(widget.ColorScheme()); Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget)); Assert.Equal("colorScheme", widget.ColorScheme()); }
public void ColorScheme_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookLikeButtonWidget().ColorScheme(null)); Assert.Throws <ArgumentException>(() => new FacebookLikeButtonWidget().ColorScheme(string.Empty)); var widget = new FacebookLikeButtonWidget(); Assert.Null(widget.ColorScheme()); Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget)); Assert.Equal("colorScheme", widget.ColorScheme()); }
public void Constructors() { var widget = new FacebookLikeButtonWidget(); Assert.Null(widget.ColorScheme()); Assert.Null(widget.Faces()); Assert.Null(widget.KidsMode()); Assert.Null(widget.Layout()); Assert.Null(widget.TrackLabel()); Assert.Null(widget.Url()); Assert.Null(widget.Verb()); Assert.Null(widget.Width()); }
public void Constructors() { var widget = new FacebookLikeButtonWidget(); Assert.Null(widget.ColorScheme()); Assert.Null(widget.Faces()); Assert.Null(widget.KidsMode()); Assert.Null(widget.Layout()); Assert.Null(widget.TrackLabel()); Assert.Null(widget.Url()); Assert.Null(widget.Verb()); Assert.Null(widget.Width()); }