public void Counter_Method()
 {
   var widget = new PinterestPinItButtonWidget();
   Assert.Equal(PinterestPinItButtonPinCountPosition.None, widget.Counter());
   Assert.True(ReferenceEquals(widget.Counter(PinterestPinItButtonPinCountPosition.Above), widget));
   Assert.Equal(PinterestPinItButtonPinCountPosition.Above, widget.Counter());
 }
        public void Counter_Method()
        {
            var widget = new PinterestPinItButtonWidget();

            Assert.Equal(PinterestPinItButtonPinCountPosition.None, widget.Counter());
            Assert.True(ReferenceEquals(widget.Counter(PinterestPinItButtonPinCountPosition.Above), widget));
            Assert.Equal(PinterestPinItButtonPinCountPosition.Above, widget.Counter());
        }
        public void Size_Method()
        {
            var widget = new PinterestPinItButtonWidget();

            Assert.Equal(PinterestPinItButtonSize.Small, widget.Size());
            Assert.True(ReferenceEquals(widget.Size(PinterestPinItButtonSize.Large), widget));
            Assert.Equal(PinterestPinItButtonSize.Large, widget.Size());
        }
        public void Shape_Method()
        {
            var widget = new PinterestPinItButtonWidget();

            Assert.Equal(PinterestPinItButtonShape.Rectangular, widget.Shape());
            Assert.True(ReferenceEquals(widget.Shape(PinterestPinItButtonShape.Circular), widget));
            Assert.Equal(PinterestPinItButtonShape.Circular, widget.Shape());
        }
    public void Image_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new PinterestPinItButtonWidget().Image(null));
      Assert.Throws<ArgumentException>(() => new PinterestPinItButtonWidget().Image(string.Empty));

      var widget = new PinterestPinItButtonWidget();
      Assert.Null(widget.Image());
      Assert.True(ReferenceEquals(widget.Image("image"), widget));
      Assert.Equal("image", widget.Image());
    }
    public void Description_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new PinterestPinItButtonWidget().Color(null));
      Assert.Throws<ArgumentException>(() => new PinterestPinItButtonWidget().Color(string.Empty));

      var widget = new PinterestPinItButtonWidget();
      Assert.Null(widget.Description());
      Assert.True(ReferenceEquals(widget.Description("description"), widget));
      Assert.Equal("description", widget.Description());
    }
    public void Color_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new PinterestPinItButtonWidget().Color(null));
      Assert.Throws<ArgumentException>(() => new PinterestPinItButtonWidget().Color(string.Empty));

      var widget = new PinterestPinItButtonWidget();
      Assert.Equal("gray", widget.Color());
      Assert.True(ReferenceEquals(widget.Color("color"), widget));
      Assert.Equal("color", widget.Color());
    }
        public void Language_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestPinItButtonWidget().Language(null));
            Assert.Throws <ArgumentException>(() => new PinterestPinItButtonWidget().Language(string.Empty));

            var widget = new PinterestPinItButtonWidget();

            Assert.Equal("en", widget.Language());
            Assert.True(ReferenceEquals(widget.Language("language"), widget));
            Assert.Equal("language", widget.Language());
        }
        public void Description_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestPinItButtonWidget().Color(null));
            Assert.Throws <ArgumentException>(() => new PinterestPinItButtonWidget().Color(string.Empty));

            var widget = new PinterestPinItButtonWidget();

            Assert.Null(widget.Description());
            Assert.True(ReferenceEquals(widget.Description("description"), widget));
            Assert.Equal("description", widget.Description());
        }
        public void Color_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestPinItButtonWidget().Color(null));
            Assert.Throws <ArgumentException>(() => new PinterestPinItButtonWidget().Color(string.Empty));

            var widget = new PinterestPinItButtonWidget();

            Assert.Equal("gray", widget.Color());
            Assert.True(ReferenceEquals(widget.Color("color"), widget));
            Assert.Equal("color", widget.Color());
        }
        public void Url_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestPinItButtonWidget().Url(null));
            Assert.Throws <ArgumentException>(() => new PinterestPinItButtonWidget().Url(string.Empty));

            var widget = new PinterestPinItButtonWidget();

            Assert.Null(widget.Url());
            Assert.True(ReferenceEquals(widget.Url("url"), widget));
            Assert.Equal("url", widget.Url());
        }
 public void Constructors()
 {
   var widget = new PinterestPinItButtonWidget();
   Assert.Equal("gray", widget.Color());
   Assert.Equal(PinterestPinItButtonPinCountPosition.None, widget.Counter());
   Assert.Null(widget.Description());
   Assert.Null(widget.Image());
   Assert.Equal("en", widget.Language());
   Assert.Equal(PinterestPinItButtonShape.Rectangular, widget.Shape());
   Assert.Equal(PinterestPinItButtonSize.Small, widget.Size());
   Assert.Null(widget.Url());
 }
        public void Constructors()
        {
            var widget = new PinterestPinItButtonWidget();

            Assert.Equal("gray", widget.Color());
            Assert.Equal(PinterestPinItButtonPinCountPosition.None, widget.Counter());
            Assert.Null(widget.Description());
            Assert.Null(widget.Image());
            Assert.Equal("en", widget.Language());
            Assert.Equal(PinterestPinItButtonShape.Rectangular, widget.Shape());
            Assert.Equal(PinterestPinItButtonSize.Small, widget.Size());
            Assert.Null(widget.Url());
        }
 public void Size_Method()
 {
   var widget = new PinterestPinItButtonWidget();
   Assert.Equal(PinterestPinItButtonSize.Small, widget.Size());
   Assert.True(ReferenceEquals(widget.Size(PinterestPinItButtonSize.Large), widget));
   Assert.Equal(PinterestPinItButtonSize.Large, widget.Size());
 }
 public void Shape_Method()
 {
   var widget = new PinterestPinItButtonWidget();
   Assert.Equal(PinterestPinItButtonShape.Rectangular, widget.Shape());
   Assert.True(ReferenceEquals(widget.Shape(PinterestPinItButtonShape.Circular), widget));
   Assert.Equal(PinterestPinItButtonShape.Circular, widget.Shape());
 }