public void Recommendations_Method()
        {
            var widget = new GooglePlusOneButtonWidget();

            Assert.Null(widget.Recommendations());
            Assert.True(ReferenceEquals(widget.Recommendations(true), widget));
            Assert.True(widget.Recommendations().Value);
        }
    public void Alignment_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new GooglePlusOneButtonWidget().Alignment(null));
      Assert.Throws<ArgumentException>(() => new GooglePlusOneButtonWidget().Alignment(string.Empty));

      var widget = new GooglePlusOneButtonWidget();
      Assert.Null(widget.Alignment());
      Assert.True(ReferenceEquals(widget.Alignment("alignment"), widget));
      Assert.Equal("alignment", widget.Alignment());
    }
    public void Size_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new GooglePlusOneButtonWidget().Size(null));
      Assert.Throws<ArgumentException>(() => new GooglePlusOneButtonWidget().Size(string.Empty));

      var widget = new GooglePlusOneButtonWidget();
      Assert.Null(widget.Size());
      Assert.True(ReferenceEquals(widget.Size("size"), widget));
      Assert.Equal("size", widget.Size());
    }
 public void Constructors()
 {
   var widget = new GooglePlusOneButtonWidget();
   Assert.Null(widget.Url());
   Assert.Null(widget.Width());
   Assert.Null(widget.Size());
   Assert.Null(widget.Alignment());
   Assert.Null(widget.Annotation());
   Assert.Null(widget.Callback());
   Assert.Null(widget.Recommendations());
 }
        public void Annotation_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new GooglePlusOneButtonWidget().Annotation(null));
            Assert.Throws <ArgumentException>(() => new GooglePlusOneButtonWidget().Annotation(string.Empty));

            var widget = new GooglePlusOneButtonWidget();

            Assert.Null(widget.Annotation());
            Assert.True(ReferenceEquals(widget.Annotation("annotation"), widget));
            Assert.Equal("annotation", widget.Annotation());
        }
        public void Size_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new GooglePlusOneButtonWidget().Size(null));
            Assert.Throws <ArgumentException>(() => new GooglePlusOneButtonWidget().Size(string.Empty));

            var widget = new GooglePlusOneButtonWidget();

            Assert.Null(widget.Size());
            Assert.True(ReferenceEquals(widget.Size("size"), widget));
            Assert.Equal("size", widget.Size());
        }
        public void Callback_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new GooglePlusOneButtonWidget().Callback(null));
            Assert.Throws <ArgumentException>(() => new GooglePlusOneButtonWidget().Callback(string.Empty));

            var widget = new GooglePlusOneButtonWidget();

            Assert.Null(widget.Callback());
            Assert.True(ReferenceEquals(widget.Callback("callback"), widget));
            Assert.Equal("callback", widget.Callback());
        }
        public void Constructors()
        {
            var widget = new GooglePlusOneButtonWidget();

            Assert.Null(widget.Url());
            Assert.Null(widget.Width());
            Assert.Null(widget.Size());
            Assert.Null(widget.Alignment());
            Assert.Null(widget.Annotation());
            Assert.Null(widget.Callback());
            Assert.Null(widget.Recommendations());
        }
 public void Recommendations_Method()
 {
   var widget = new GooglePlusOneButtonWidget();
   Assert.Null(widget.Recommendations());
   Assert.True(ReferenceEquals(widget.Recommendations(true), widget));
   Assert.True(widget.Recommendations().Value);
 }
    public void Callback_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new GooglePlusOneButtonWidget().Callback(null));
      Assert.Throws<ArgumentException>(() => new GooglePlusOneButtonWidget().Callback(string.Empty));

      var widget = new GooglePlusOneButtonWidget();
      Assert.Null(widget.Callback());
      Assert.True(ReferenceEquals(widget.Callback("callback"), widget));
      Assert.Equal("callback", widget.Callback());
    }