public void Height_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new PinterestProfileWidget().Height(null));
      Assert.Throws<ArgumentException>(() => new PinterestProfileWidget().Height(string.Empty));

      var widget = new PinterestProfileWidget();
      Assert.Null(widget.Height());
      Assert.True(ReferenceEquals(widget.Height("height"), widget));
      Assert.Equal("height", widget.Height());
    }
Example #2
0
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestProfileWidget().Height(null));
            Assert.Throws <ArgumentException>(() => new PinterestProfileWidget().Height(string.Empty));

            var widget = new PinterestProfileWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
 public void Constructors()
 {
   var widget = new PinterestProfileWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.Height());
   Assert.Null(widget.Width());
   Assert.Null(widget.Image());
 }
Example #4
0
        public void Constructors()
        {
            var widget = new PinterestProfileWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.Height());
            Assert.Null(widget.Width());
            Assert.Null(widget.Image());
        }