public void Image_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestProfileWidget().Image(null)); Assert.Throws<ArgumentException>(() => new PinterestProfileWidget().Image(string.Empty)); var widget = new PinterestProfileWidget(); Assert.Null(widget.Image()); Assert.True(ReferenceEquals(widget.Image("image"), widget)); Assert.Equal("image", widget.Image()); }
public void Image_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestProfileWidget().Image(null)); Assert.Throws <ArgumentException>(() => new PinterestProfileWidget().Image(string.Empty)); var widget = new PinterestProfileWidget(); Assert.Null(widget.Image()); Assert.True(ReferenceEquals(widget.Image("image"), widget)); Assert.Equal("image", widget.Image()); }
public void Constructors() { var widget = new PinterestProfileWidget(); Assert.Null(widget.Account()); Assert.Null(widget.Height()); Assert.Null(widget.Width()); Assert.Null(widget.Image()); }