public void Limit_Method() { var widget = new VkontakteCommentsWidget(); Assert.Equal((byte)VkontakteCommentsLimit.Limit5, widget.Limit()); Assert.True(ReferenceEquals(widget.Limit(1), widget)); Assert.Equal(1, widget.Limit()); }
public void Constructors() { var widget = new VkontakteCommentsWidget(); Assert.False(widget.Attach().Any()); Assert.Null(widget.AutoPublish()); Assert.Null(widget.AutoUpdate()); Assert.Null(widget.ElementId()); Assert.Equal((byte)VkontakteCommentsLimit.Limit5, widget.Limit()); Assert.Null(widget.Mini()); Assert.Null(widget.Width()); }