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