public void Hd_Method()
 {
   var widget = new VkontakteVideoWidget();
   Assert.False(widget.Hd());
   Assert.True(ReferenceEquals(widget.Hd(true), widget));
   Assert.True(widget.Hd());
 }
        public void Hd_Method()
        {
            var widget = new VkontakteVideoWidget();

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

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

      var widget = new VkontakteVideoWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
 public void Constructors()
 {
   var widget = new VkontakteVideoWidget();
   Assert.Null(widget.Id());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.False(widget.Hd());
   Assert.Null(widget.User());
   Assert.Null(widget.Hash());
 }
        public void User_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new VkontakteVideoWidget().User(null));
            Assert.Throws <ArgumentException>(() => new VkontakteVideoWidget().User(string.Empty));

            var widget = new VkontakteVideoWidget();

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

            var widget = new VkontakteVideoWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
        public void Constructors()
        {
            var widget = new VkontakteVideoWidget();

            Assert.Null(widget.Id());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
            Assert.False(widget.Hd());
            Assert.Null(widget.User());
            Assert.Null(widget.Hash());
        }