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