public void Size_Method() { Assert.Throws<ArgumentNullException>(() => new GooglePlusOneButtonWidget().Size(null)); Assert.Throws<ArgumentException>(() => new GooglePlusOneButtonWidget().Size(string.Empty)); var widget = new GooglePlusOneButtonWidget(); Assert.Null(widget.Size()); Assert.True(ReferenceEquals(widget.Size("size"), widget)); Assert.Equal("size", widget.Size()); }
public void Size_Method() { Assert.Throws <ArgumentNullException>(() => new GooglePlusOneButtonWidget().Size(null)); Assert.Throws <ArgumentException>(() => new GooglePlusOneButtonWidget().Size(string.Empty)); var widget = new GooglePlusOneButtonWidget(); Assert.Null(widget.Size()); Assert.True(ReferenceEquals(widget.Size("size"), widget)); Assert.Equal("size", widget.Size()); }
public void Constructors() { var widget = new GooglePlusOneButtonWidget(); Assert.Null(widget.Url()); Assert.Null(widget.Width()); Assert.Null(widget.Size()); Assert.Null(widget.Alignment()); Assert.Null(widget.Annotation()); Assert.Null(widget.Callback()); Assert.Null(widget.Recommendations()); }