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