public void Counter_Method()
        {
            var widget = new SurfingbirdSurfButtonWidget();

            Assert.False(widget.Counter());
            Assert.True(ReferenceEquals(widget.Counter(true), widget));
            Assert.True(widget.Counter());
        }
    public void Height_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Height(null));
      Assert.Throws<ArgumentException>(() => new SurfingbirdSurfButtonWidget().Height(string.Empty));

      var widget = new SurfingbirdSurfButtonWidget();
      Assert.Null(widget.Height());
      Assert.True(ReferenceEquals(widget.Height("height"), widget));
      Assert.Equal("height", widget.Height());
    }
    public void Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new SurfingbirdSurfButtonWidget().Width(string.Empty));

      var widget = new SurfingbirdSurfButtonWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
    public void Layout_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Layout(null));
      Assert.Throws<ArgumentException>(() => new SurfingbirdSurfButtonWidget().Layout(string.Empty));

      var widget = new SurfingbirdSurfButtonWidget();
      Assert.Equal(SurfingbirdSurfButtonLayout.Common.ToString().ToLowerInvariant(), widget.Layout());
      Assert.True(ReferenceEquals(widget.Layout("layout"), widget));
      Assert.Equal("layout", widget.Layout());
    }
 public void Constructors()
 {
   var widget = new SurfingbirdSurfButtonWidget();
   Assert.Null(widget.Url());
   Assert.Equal(SurfingbirdSurfButtonLayout.Common.ToString().ToLowerInvariant(), widget.Layout());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.False(widget.Counter());
   Assert.Equal("Surf", widget.Label());
   Assert.Null(widget.Color());
 }
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Height(null));
            Assert.Throws <ArgumentException>(() => new SurfingbirdSurfButtonWidget().Height(string.Empty));

            var widget = new SurfingbirdSurfButtonWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new SurfingbirdSurfButtonWidget().Width(string.Empty));

            var widget = new SurfingbirdSurfButtonWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }
        public void Layout_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Layout(null));
            Assert.Throws <ArgumentException>(() => new SurfingbirdSurfButtonWidget().Layout(string.Empty));

            var widget = new SurfingbirdSurfButtonWidget();

            Assert.Equal(SurfingbirdSurfButtonLayout.Common.ToString().ToLowerInvariant(), widget.Layout());
            Assert.True(ReferenceEquals(widget.Layout("layout"), widget));
            Assert.Equal("layout", widget.Layout());
        }
        public void Color_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Color(null));
            Assert.Throws <ArgumentException>(() => new SurfingbirdSurfButtonWidget().Color(string.Empty));

            var widget = new SurfingbirdSurfButtonWidget();

            Assert.Null(widget.Color());
            Assert.True(ReferenceEquals(widget.Color("color"), widget));
            Assert.Equal("color", widget.Color());
        }
        public void Label_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Label(null));
            Assert.Throws <ArgumentException>(() => new SurfingbirdSurfButtonWidget().Label(string.Empty));

            var widget = new SurfingbirdSurfButtonWidget();

            Assert.Equal("Surf", widget.Label());
            Assert.True(ReferenceEquals(widget.Label("label"), widget));
            Assert.Equal("label", widget.Label());
        }
        public void Constructors()
        {
            var widget = new SurfingbirdSurfButtonWidget();

            Assert.Null(widget.Url());
            Assert.Equal(SurfingbirdSurfButtonLayout.Common.ToString().ToLowerInvariant(), widget.Layout());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
            Assert.False(widget.Counter());
            Assert.Equal("Surf", widget.Label());
            Assert.Null(widget.Color());
        }
 public void Counter_Method()
 {
   var widget = new SurfingbirdSurfButtonWidget();
   Assert.False(widget.Counter());
   Assert.True(ReferenceEquals(widget.Counter(true), widget));
   Assert.True(widget.Counter());
 }
    public void Color_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Color(null));
      Assert.Throws<ArgumentException>(() => new SurfingbirdSurfButtonWidget().Color(string.Empty));

      var widget = new SurfingbirdSurfButtonWidget();
      Assert.Null(widget.Color());
      Assert.True(ReferenceEquals(widget.Color("color"), widget));
      Assert.Equal("color", widget.Color());
    }
    public void Label_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new SurfingbirdSurfButtonWidget().Label(null));
      Assert.Throws<ArgumentException>(() => new SurfingbirdSurfButtonWidget().Label(string.Empty));

      var widget = new SurfingbirdSurfButtonWidget();
      Assert.Equal("Surf", widget.Label());
      Assert.True(ReferenceEquals(widget.Label("label"), widget));
      Assert.Equal("label", widget.Label());
    }