public void Title_Method() { Assert.Throws<ArgumentNullException>(() => new YandexLikeButtonWidget().Title(null)); Assert.Throws<ArgumentException>(() => new YandexLikeButtonWidget().Title(string.Empty)); var widget = new YandexLikeButtonWidget(); Assert.Null(widget.Title()); Assert.True(ReferenceEquals(widget.Title("title"), widget)); Assert.Equal("title", widget.Title()); }
public void Title_Method() { Assert.Throws <ArgumentNullException>(() => new YandexLikeButtonWidget().Title(null)); Assert.Throws <ArgumentException>(() => new YandexLikeButtonWidget().Title(string.Empty)); var widget = new YandexLikeButtonWidget(); Assert.Null(widget.Title()); Assert.True(ReferenceEquals(widget.Title("title"), widget)); Assert.Equal("title", widget.Title()); }
public void Constructors() { var widget = new YandexLikeButtonWidget(); Assert.Null(widget.Url()); Assert.Null(widget.Title()); Assert.Equal(YandexLikeButtonSize.Large.ToString().ToLowerInvariant(), widget.Size()); Assert.Equal(YandexLikeButtonLayout.Button.ToString().ToLowerInvariant(), widget.Layout()); Assert.Null(widget.Text()); }
public void Constructors() { var widget = new YandexLikeButtonWidget(); Assert.Null(widget.Url()); Assert.Null(widget.Title()); Assert.Equal(YandexLikeButtonSize.Large.ToString().ToLowerInvariant(), widget.Size()); Assert.Equal(YandexLikeButtonLayout.Button.ToString().ToLowerInvariant(), widget.Layout()); Assert.Null(widget.Text()); }