public void Video_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IYandexHtmlHelperExtensions.Video(null, widget => { }));
            Assert.Throws <ArgumentNullException>(() => new YandexHtmlHelper().Video(null));

            Assert.Equal(new YandexHtmlHelper().Video().ToHtmlString(), new YandexHtmlHelper().Video(x => { }));
            Assert.Equal(new YandexHtmlHelper().Video().Id("id").Width("width").Height("height").User("user").ToHtmlString(), new YandexHtmlHelper().Video(x => x.Id("id").Width("width").Height("height").User("user")));
        }
        public void SharePanel_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IYandexHtmlHelperExtensions.SharePanel(null, widget => { }));
            Assert.Throws <ArgumentNullException>(() => new YandexHtmlHelper().SharePanel(null));

            Assert.Equal(new YandexHtmlHelper().SharePanel().ToHtmlString(), new YandexHtmlHelper().SharePanel(x => { }));
            Assert.Equal(new YandexHtmlHelper().SharePanel().Layout(YandexSharePanelLayout.Button).ToHtmlString(), new YandexHtmlHelper().SharePanel(x => x.Layout(YandexSharePanelLayout.Button)));
        }
        public void MoneyPaymentForm_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IYandexHtmlHelperExtensions.MoneyPaymentForm(null, widget => { }));
            Assert.Throws <ArgumentNullException>(() => new YandexHtmlHelper().MoneyPaymentForm(null));

            Assert.Equal(new YandexHtmlHelper().MoneyPaymentForm().ToHtmlString(), new YandexHtmlHelper().MoneyPaymentForm(x => { }));
            Assert.Equal(new YandexHtmlHelper().MoneyPaymentForm().Account("account").ToHtmlString(), new YandexHtmlHelper().MoneyPaymentForm(x => x.Account("account")));
        }
        public void MoneyButton_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IYandexHtmlHelperExtensions.MoneyButton(null, widget => { }));
            Assert.Throws <ArgumentNullException>(() => new YandexHtmlHelper().MoneyButton(null));

            Assert.Equal(new YandexHtmlHelper().MoneyButton().ToHtmlString(), new YandexHtmlHelper().MoneyButton(x => { }));
            Assert.Equal(new YandexHtmlHelper().MoneyButton().Account("account").Description("description").Sum(1).ToHtmlString(), new YandexHtmlHelper().MoneyButton(x => x.Account("account").Description("description").Sum(1)));
        }
        public void LikeButton_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IYandexHtmlHelperExtensions.LikeButton(null, widget => { }));
            Assert.Throws <ArgumentNullException>(() => new YandexHtmlHelper().LikeButton(null));

            Assert.Equal(new YandexHtmlHelper().LikeButton().ToHtmlString(), new YandexHtmlHelper().LikeButton(x => { }));
            Assert.Equal(new YandexHtmlHelper().LikeButton().Url("url").ToHtmlString(), new YandexHtmlHelper().LikeButton(x => x.Url("url")));
        }
        public void Analytics_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IYandexHtmlHelperExtensions.Analytics(null, widget => { }));
            Assert.Throws <ArgumentNullException>(() => new YandexHtmlHelper().Analytics(null));

            Assert.Equal(new YandexHtmlHelper().Analytics().ToHtmlString(), new YandexHtmlHelper().Analytics(x => { }));
            Assert.Equal(new YandexHtmlHelper().Analytics().Account("account").ToHtmlString(), new YandexHtmlHelper().Analytics(x => x.Account("account")));
        }