public void Width_Method() { Assert.Throws<ArgumentNullException>(() => new YouTubeVideoWidget().Width(null)); Assert.Throws<ArgumentException>(() => new YouTubeVideoWidget().Width(string.Empty)); var widget = new YouTubeVideoWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }
public void Width_Method() { Assert.Throws <ArgumentNullException>(() => new YouTubeVideoWidget().Width(null)); Assert.Throws <ArgumentException>(() => new YouTubeVideoWidget().Width(string.Empty)); var widget = new YouTubeVideoWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }
public void Constructors() { var widget = new YouTubeVideoWidget(); Assert.Null(widget.Id()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.False(widget.PrivateMode()); Assert.False(widget.SecureMode()); }
public void Constructors() { var widget = new YouTubeVideoWidget(); Assert.Null(widget.Id()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.False(widget.PrivateMode()); Assert.False(widget.SecureMode()); }