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