public void TextType_Method()
 {
   var widget = new MailRuLikeButtonWidget();
   Assert.Equal((byte)MailRuLikeButtonTextType.First, widget.TextType());
   Assert.True(ReferenceEquals(widget.TextType(2), widget));
   Assert.Equal(2, widget.TextType());
 }
 public void Layout_Method()
 {
   var widget = new MailRuLikeButtonWidget();
   Assert.Equal((byte)MailRuLikeButtonLayout.First, widget.Layout());
   Assert.True(ReferenceEquals(widget.Layout(1), widget));
   Assert.Equal(1, widget.Layout());
 }
 public void Text_Method()
 {
   var widget = new MailRuLikeButtonWidget();
   Assert.True(widget.Text());
   Assert.True(ReferenceEquals(widget.Text(false), widget));
   Assert.False(widget.Text());
 }
 public void Size_Method()
 {
   var widget = new MailRuLikeButtonWidget();
   Assert.Equal("20", widget.Size());
   Assert.True(ReferenceEquals(widget.Size("1"), widget));
   Assert.Equal("1", widget.Size());
 }
        public void Text_Method()
        {
            var widget = new MailRuLikeButtonWidget();

            Assert.True(widget.Text());
            Assert.True(ReferenceEquals(widget.Text(false), widget));
            Assert.False(widget.Text());
        }
        public void TextType_Method()
        {
            var widget = new MailRuLikeButtonWidget();

            Assert.Equal((byte)MailRuLikeButtonTextType.First, widget.TextType());
            Assert.True(ReferenceEquals(widget.TextType(2), widget));
            Assert.Equal(2, widget.TextType());
        }
        public void Layout_Method()
        {
            var widget = new MailRuLikeButtonWidget();

            Assert.Equal((byte)MailRuLikeButtonLayout.First, widget.Layout());
            Assert.True(ReferenceEquals(widget.Layout(1), widget));
            Assert.Equal(1, widget.Layout());
        }
        public void Size_Method()
        {
            var widget = new MailRuLikeButtonWidget();

            Assert.Equal("20", widget.Size());
            Assert.True(ReferenceEquals(widget.Size("1"), widget));
            Assert.Equal("1", widget.Size());
        }
    public void Type_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new MailRuLikeButtonWidget().Type(null));
      Assert.Throws<ArgumentException>(() => new MailRuLikeButtonWidget().Type(string.Empty));

      var widget = new MailRuLikeButtonWidget();
      Assert.Equal("combo", widget.Type());
      Assert.True(ReferenceEquals(widget.Type("type"), widget));
      Assert.Equal("type", widget.Type());
    }
 public void Constructors()
 {
   var widget = new MailRuLikeButtonWidget();
   Assert.Equal("combo", widget.Type());
   Assert.Equal("20", widget.Size());
   Assert.Equal((byte)MailRuLikeButtonLayout.First, widget.Layout());
   Assert.True(widget.Text());
   Assert.Equal((byte)MailRuLikeButtonTextType.First, widget.TextType());
   Assert.True(widget.Counter());
   Assert.Equal(MailRuLikeButtonCounterPosition.Right.ToString().ToLowerInvariant(), widget.CounterPosition());
 }
        public void Type_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new MailRuLikeButtonWidget().Type(null));
            Assert.Throws <ArgumentException>(() => new MailRuLikeButtonWidget().Type(string.Empty));

            var widget = new MailRuLikeButtonWidget();

            Assert.Equal("combo", widget.Type());
            Assert.True(ReferenceEquals(widget.Type("type"), widget));
            Assert.Equal("type", widget.Type());
        }
        public void CounterPosition_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new MailRuLikeButtonWidget().CounterPosition(null));
            Assert.Throws <ArgumentNullException>(() => new MailRuLikeButtonWidget().CounterPosition(null));

            var widget = new MailRuLikeButtonWidget();

            Assert.Equal(MailRuLikeButtonCounterPosition.Right.ToString().ToLowerInvariant(), widget.CounterPosition());
            Assert.True(ReferenceEquals(widget.CounterPosition("counterPosition"), widget));
            Assert.Equal("counterPosition", widget.CounterPosition());
        }
        public void Constructors()
        {
            var widget = new MailRuLikeButtonWidget();

            Assert.Equal("combo", widget.Type());
            Assert.Equal("20", widget.Size());
            Assert.Equal((byte)MailRuLikeButtonLayout.First, widget.Layout());
            Assert.True(widget.Text());
            Assert.Equal((byte)MailRuLikeButtonTextType.First, widget.TextType());
            Assert.True(widget.Counter());
            Assert.Equal(MailRuLikeButtonCounterPosition.Right.ToString().ToLowerInvariant(), widget.CounterPosition());
        }
    public void CounterPosition_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new MailRuLikeButtonWidget().CounterPosition(null));
      Assert.Throws<ArgumentNullException>(() => new MailRuLikeButtonWidget().CounterPosition(null));

      var widget = new MailRuLikeButtonWidget();
      Assert.Equal(MailRuLikeButtonCounterPosition.Right.ToString().ToLowerInvariant(), widget.CounterPosition());
      Assert.True(ReferenceEquals(widget.CounterPosition("counterPosition"), widget));
      Assert.Equal("counterPosition", widget.CounterPosition());
    }