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 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 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 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());
        }