public void Id_Method() { Assert.Throws<ArgumentNullException>(() => new VkontakteVideoWidget().Id(null)); Assert.Throws<ArgumentException>(() => new VkontakteVideoWidget().Id(string.Empty)); var widget = new VkontakteVideoWidget(); Assert.Null(widget.Id()); Assert.True(ReferenceEquals(widget.Id("id"), widget)); Assert.Equal("id", widget.Id()); }
public void Id_Method() { Assert.Throws <ArgumentNullException>(() => new VkontakteVideoWidget().Id(null)); Assert.Throws <ArgumentException>(() => new VkontakteVideoWidget().Id(string.Empty)); var widget = new VkontakteVideoWidget(); Assert.Null(widget.Id()); Assert.True(ReferenceEquals(widget.Id("id"), widget)); Assert.Equal("id", widget.Id()); }
public void Constructors() { var widget = new VkontakteVideoWidget(); Assert.Null(widget.Id()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.False(widget.Hd()); Assert.Null(widget.User()); Assert.Null(widget.Hash()); }
public void Constructors() { var widget = new VkontakteVideoWidget(); Assert.Null(widget.Id()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.False(widget.Hd()); Assert.Null(widget.User()); Assert.Null(widget.Hash()); }