public void Account_Method() { Assert.Throws<ArgumentNullException>(() => new TumblrFollowButtonWidget().Account(null)); Assert.Throws<ArgumentException>(() => new TumblrFollowButtonWidget().Account(string.Empty)); var widget = new TumblrFollowButtonWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Account_Method() { Assert.Throws <ArgumentNullException>(() => new TumblrFollowButtonWidget().Account(null)); Assert.Throws <ArgumentException>(() => new TumblrFollowButtonWidget().Account(string.Empty)); var widget = new TumblrFollowButtonWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Constructors() { var widget = new TumblrFollowButtonWidget(); Assert.Null(widget.Account()); Assert.Equal((byte) TumblrFollowButtonType.First, widget.Type()); Assert.Equal(TumblrFollowButtonColorScheme.Light.ToString().ToLowerInvariant(), widget.ColorScheme()); }
public void Constructors() { var widget = new TumblrFollowButtonWidget(); Assert.Null(widget.Account()); Assert.Equal((byte)TumblrFollowButtonType.First, widget.Type()); Assert.Equal(TumblrFollowButtonColorScheme.Light.ToString().ToLowerInvariant(), widget.ColorScheme()); }