public void ElementId_Method() { Assert.Throws<ArgumentNullException>(() => new VkontakteLikeButtonWidget().ElementId(null)); Assert.Throws<ArgumentException>(() => new VkontakteLikeButtonWidget().ElementId(string.Empty)); var widget = new VkontakteLikeButtonWidget(); Assert.Null(widget.ElementId()); Assert.True(ReferenceEquals(widget.ElementId("elementId"), widget)); Assert.Equal("elementId", widget.ElementId()); }
public void ElementId_Method() { Assert.Throws <ArgumentNullException>(() => new VkontakteLikeButtonWidget().ElementId(null)); Assert.Throws <ArgumentException>(() => new VkontakteLikeButtonWidget().ElementId(string.Empty)); var widget = new VkontakteLikeButtonWidget(); Assert.Null(widget.ElementId()); Assert.True(ReferenceEquals(widget.ElementId("elementId"), widget)); Assert.Equal("elementId", widget.ElementId()); }
public void Constructors() { var widget = new VkontakteLikeButtonWidget(); Assert.Null(widget.ElementId()); Assert.Null(widget.Text()); Assert.Null(widget.Verb()); Assert.Null(widget.Layout()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.Null(widget.Title()); Assert.Null(widget.Url()); Assert.Null(widget.Description()); Assert.Null(widget.Image()); }
public void Constructors() { var widget = new VkontakteLikeButtonWidget(); Assert.Null(widget.ElementId()); Assert.Null(widget.Text()); Assert.Null(widget.Verb()); Assert.Null(widget.Layout()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.Null(widget.Title()); Assert.Null(widget.Url()); Assert.Null(widget.Description()); Assert.Null(widget.Image()); }