public void Counter_Method() { var widget = new MailRuLikeButtonWidget(); Assert.True(widget.Counter()); Assert.True(ReferenceEquals(widget.Counter(false), widget)); Assert.False(widget.Counter()); }
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()); }