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