public void Url_Method() { Assert.Throws<ArgumentNullException>(() => new VkontakteAuthButtonWidget().Url(null)); Assert.Throws<ArgumentException>(() => new VkontakteAuthButtonWidget().Url(string.Empty)); var widget = new VkontakteAuthButtonWidget(); Assert.Null(widget.Url()); Assert.True(ReferenceEquals(widget.Url("url"), widget)); Assert.Equal("url", widget.Url()); }
public void Url_Method() { Assert.Throws <ArgumentNullException>(() => new VkontakteAuthButtonWidget().Url(null)); Assert.Throws <ArgumentException>(() => new VkontakteAuthButtonWidget().Url(string.Empty)); var widget = new VkontakteAuthButtonWidget(); Assert.Null(widget.Url()); Assert.True(ReferenceEquals(widget.Url("url"), widget)); Assert.Equal("url", widget.Url()); }
public void Constructors() { var widget = new VkontakteAuthButtonWidget(); Assert.Null(widget.Callback()); Assert.Null(widget.ElementId()); Assert.Equal(VkontakteAuthButtonType.Standard, widget.Type()); Assert.Null(widget.Url()); Assert.Null(widget.Width()); }
public void Constructors() { var widget = new VkontakteAuthButtonWidget(); Assert.Null(widget.Callback()); Assert.Null(widget.ElementId()); Assert.Equal(VkontakteAuthButtonType.Standard, widget.Type()); Assert.Null(widget.Url()); Assert.Null(widget.Width()); }