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