public void Type_Method()
 {
   var widget = new VkontakteAuthButtonWidget();
   Assert.Equal(VkontakteAuthButtonType.Standard, widget.Type());
   Assert.True(ReferenceEquals(widget.Type(VkontakteAuthButtonType.Dynamic), widget));
   Assert.Equal(VkontakteAuthButtonType.Dynamic, widget.Type());
 }
        public void Type_Method()
        {
            var widget = new VkontakteAuthButtonWidget();

            Assert.Equal(VkontakteAuthButtonType.Standard, widget.Type());
            Assert.True(ReferenceEquals(widget.Type(VkontakteAuthButtonType.Dynamic), widget));
            Assert.Equal(VkontakteAuthButtonType.Dynamic, widget.Type());
        }
 public void Constructors()
 {
   var widget = new VkontakteAuthButtonWidget();
   Assert.Null(widget.Callback());
   Assert.Null(widget.ElementId());
   Assert.Equal(VkontakteAuthButtonType.Standard, widget.Type());
   Assert.Null(widget.Url());
   Assert.Null(widget.Width());
 }
    public void Url_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new VkontakteAuthButtonWidget().Url(null));
      Assert.Throws<ArgumentException>(() => new VkontakteAuthButtonWidget().Url(string.Empty));

      var widget = new VkontakteAuthButtonWidget();
      Assert.Null(widget.Url());
      Assert.True(ReferenceEquals(widget.Url("url"), widget));
      Assert.Equal("url", widget.Url());
    }
        public void Constructors()
        {
            var widget = new VkontakteAuthButtonWidget();

            Assert.Null(widget.Callback());
            Assert.Null(widget.ElementId());
            Assert.Equal(VkontakteAuthButtonType.Standard, widget.Type());
            Assert.Null(widget.Url());
            Assert.Null(widget.Width());
        }
        public void Callback_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new VkontakteAuthButtonWidget().Callback(null));
            Assert.Throws <ArgumentException>(() => new VkontakteAuthButtonWidget().Callback(string.Empty));

            var widget = new VkontakteAuthButtonWidget();

            Assert.Null(widget.Callback());
            Assert.True(ReferenceEquals(widget.Callback("callback"), widget));
            Assert.Equal("callback", widget.Callback());
        }
        public void Url_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new VkontakteAuthButtonWidget().Url(null));
            Assert.Throws <ArgumentException>(() => new VkontakteAuthButtonWidget().Url(string.Empty));

            var widget = new VkontakteAuthButtonWidget();

            Assert.Null(widget.Url());
            Assert.True(ReferenceEquals(widget.Url("url"), widget));
            Assert.Equal("url", widget.Url());
        }
    public void Callback_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new VkontakteAuthButtonWidget().Callback(null));
      Assert.Throws<ArgumentException>(() => new VkontakteAuthButtonWidget().Callback(string.Empty));

      var widget = new VkontakteAuthButtonWidget();
      Assert.Null(widget.Callback());
      Assert.True(ReferenceEquals(widget.Callback("callback"), widget));
      Assert.Equal("callback", widget.Callback());
    }