public void Color_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestPinItButtonWidget().Color(null)); Assert.Throws<ArgumentException>(() => new PinterestPinItButtonWidget().Color(string.Empty)); var widget = new PinterestPinItButtonWidget(); Assert.Equal("gray", widget.Color()); Assert.True(ReferenceEquals(widget.Color("color"), widget)); Assert.Equal("color", widget.Color()); }
public void Color_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestPinItButtonWidget().Color(null)); Assert.Throws <ArgumentException>(() => new PinterestPinItButtonWidget().Color(string.Empty)); var widget = new PinterestPinItButtonWidget(); Assert.Equal("gray", widget.Color()); Assert.True(ReferenceEquals(widget.Color("color"), widget)); Assert.Equal("color", widget.Color()); }
public void Constructors() { var widget = new PinterestPinItButtonWidget(); Assert.Equal("gray", widget.Color()); Assert.Equal(PinterestPinItButtonPinCountPosition.None, widget.Counter()); Assert.Null(widget.Description()); Assert.Null(widget.Image()); Assert.Equal("en", widget.Language()); Assert.Equal(PinterestPinItButtonShape.Rectangular, widget.Shape()); Assert.Equal(PinterestPinItButtonSize.Small, widget.Size()); Assert.Null(widget.Url()); }