public void Height_Method() { Assert.Throws<ArgumentNullException>(() => new YandexVideoWidget().Height(null)); Assert.Throws<ArgumentException>(() => new YandexVideoWidget().Height(string.Empty)); var widget = new YandexVideoWidget(); Assert.Null(widget.Height()); Assert.True(ReferenceEquals(widget.Height("height"), widget)); Assert.Equal("height", widget.Height()); }
public void Height_Method() { Assert.Throws <ArgumentNullException>(() => new YandexVideoWidget().Height(null)); Assert.Throws <ArgumentException>(() => new YandexVideoWidget().Height(string.Empty)); var widget = new YandexVideoWidget(); Assert.Null(widget.Height()); Assert.True(ReferenceEquals(widget.Height("height"), widget)); Assert.Equal("height", widget.Height()); }
public void Constructors() { var widget = new YandexVideoWidget(); Assert.Null(widget.Id()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.Null(widget.User()); }