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