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