public void Constructors()
 {
   var widget = new YandexVideoWidget();
   Assert.Null(widget.Id());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.Null(widget.User());
 }
        public void Constructors()
        {
            var widget = new YandexVideoWidget();

            Assert.Null(widget.Id());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
            Assert.Null(widget.User());
        }
    public void Height_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexVideoWidget().Height(null));
      Assert.Throws<ArgumentException>(() => new YandexVideoWidget().Height(string.Empty));

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

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

      var widget = new YandexVideoWidget();
      Assert.Null(widget.User());
      Assert.True(ReferenceEquals(widget.User("user"), widget));
      Assert.Equal("user", widget.User());
    }
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new YandexVideoWidget().Height(null));
            Assert.Throws <ArgumentException>(() => new YandexVideoWidget().Height(string.Empty));

            var widget = new YandexVideoWidget();

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

            var widget = new YandexVideoWidget();

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

            var widget = new YandexVideoWidget();

            Assert.Null(widget.User());
            Assert.True(ReferenceEquals(widget.User("user"), widget));
            Assert.Equal("user", widget.User());
        }