public void Constructors()
 {
   var widget = new PinterestProfileWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.Height());
   Assert.Null(widget.Width());
   Assert.Null(widget.Image());
 }
Exemplo n.º 2
0
        public void Constructors()
        {
            var widget = new PinterestProfileWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.Height());
            Assert.Null(widget.Width());
            Assert.Null(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 Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new PinterestProfileWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new PinterestProfileWidget().Width(string.Empty));

      var widget = new PinterestProfileWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
    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());
    }
Exemplo n.º 6
0
        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());
        }
Exemplo n.º 7
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestProfileWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new PinterestProfileWidget().Width(string.Empty));

            var widget = new PinterestProfileWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }
Exemplo n.º 8
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());
        }