public void ElementId_Method() { Assert.Throws<ArgumentNullException>(() => new VkontaktePollWidget().ElementId(null)); Assert.Throws<ArgumentException>(() => new VkontaktePollWidget().ElementId(string.Empty)); var widget = new VkontaktePollWidget(); Assert.Null(widget.ElementId()); Assert.True(ReferenceEquals(widget.ElementId("elementId"), widget)); Assert.Equal("elementId", widget.ElementId()); }
public void ElementId_Method() { Assert.Throws <ArgumentNullException>(() => new VkontaktePollWidget().ElementId(null)); Assert.Throws <ArgumentException>(() => new VkontaktePollWidget().ElementId(string.Empty)); var widget = new VkontaktePollWidget(); Assert.Null(widget.ElementId()); Assert.True(ReferenceEquals(widget.ElementId("elementId"), widget)); Assert.Equal("elementId", widget.ElementId()); }
public void Constructors() { var widget = new VkontaktePollWidget(); Assert.Null(widget.ElementId()); Assert.Null(widget.Id()); Assert.Null(widget.Url()); Assert.Null(widget.Width()); }
public void Constructors() { var widget = new VkontaktePollWidget(); Assert.Null(widget.ElementId()); Assert.Null(widget.Id()); Assert.Null(widget.Url()); Assert.Null(widget.Width()); }