public void Constructors()
 {
   var widget = new YandexLikeButtonWidget();
   Assert.Null(widget.Url());
   Assert.Null(widget.Title());
   Assert.Equal(YandexLikeButtonSize.Large.ToString().ToLowerInvariant(), widget.Size());
   Assert.Equal(YandexLikeButtonLayout.Button.ToString().ToLowerInvariant(), widget.Layout());
   Assert.Null(widget.Text());
 }
    public void Layout_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexLikeButtonWidget().Layout(null));
      Assert.Throws<ArgumentException>(() => new YandexLikeButtonWidget().Layout(string.Empty));

      var widget = new YandexLikeButtonWidget();
      Assert.Equal("button", widget.Layout());
      Assert.True(ReferenceEquals(widget.Layout("layout"), widget));
      Assert.Equal("layout", widget.Layout());
    }
    public void Size_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexLikeButtonWidget().Size(null));
      Assert.Throws<ArgumentException>(() => new YandexLikeButtonWidget().Size(string.Empty));

      var widget = new YandexLikeButtonWidget();
      Assert.Equal(YandexLikeButtonSize.Large.ToString().ToLowerInvariant(), widget.Size());
      Assert.True(ReferenceEquals(widget.Size("size"), widget));
      Assert.Equal("size", widget.Size());
    }
    public void Title_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexLikeButtonWidget().Title(null));
      Assert.Throws<ArgumentException>(() => new YandexLikeButtonWidget().Title(string.Empty));

      var widget = new YandexLikeButtonWidget();
      Assert.Null(widget.Title());
      Assert.True(ReferenceEquals(widget.Title("title"), widget));
      Assert.Equal("title", widget.Title());
    }
        public void Constructors()
        {
            var widget = new YandexLikeButtonWidget();

            Assert.Null(widget.Url());
            Assert.Null(widget.Title());
            Assert.Equal(YandexLikeButtonSize.Large.ToString().ToLowerInvariant(), widget.Size());
            Assert.Equal(YandexLikeButtonLayout.Button.ToString().ToLowerInvariant(), widget.Layout());
            Assert.Null(widget.Text());
        }
        public void Text_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new YandexLikeButtonWidget().Text(null));
            Assert.Throws <ArgumentException>(() => new YandexLikeButtonWidget().Text(string.Empty));

            var widget = new YandexLikeButtonWidget();

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

            var widget = new YandexLikeButtonWidget();

            Assert.Equal(YandexLikeButtonSize.Large.ToString().ToLowerInvariant(), widget.Size());
            Assert.True(ReferenceEquals(widget.Size("size"), widget));
            Assert.Equal("size", widget.Size());
        }