public void Constructors() { var widget = new PinterestFollowButtonWidget(); Assert.Null(widget.Account()); Assert.Equal("Follow", widget.Label()); }
public void Label_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestFollowButtonWidget().Label(null)); Assert.Throws<ArgumentException>(() => new PinterestFollowButtonWidget().Label(string.Empty)); var widget = new PinterestFollowButtonWidget(); Assert.Equal("Follow", widget.Label()); Assert.True(ReferenceEquals(widget.Label("label"), widget)); Assert.Equal("label", widget.Label()); }
public void Account_Method() { Assert.Throws<ArgumentNullException>(() => new PinterestFollowButtonWidget().Account(null)); Assert.Throws<ArgumentException>(() => new PinterestFollowButtonWidget().Account(string.Empty)); var widget = new PinterestFollowButtonWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }
public void Label_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestFollowButtonWidget().Label(null)); Assert.Throws <ArgumentException>(() => new PinterestFollowButtonWidget().Label(string.Empty)); var widget = new PinterestFollowButtonWidget(); Assert.Equal("Follow", widget.Label()); Assert.True(ReferenceEquals(widget.Label("label"), widget)); Assert.Equal("label", widget.Label()); }
public void Account_Method() { Assert.Throws <ArgumentNullException>(() => new PinterestFollowButtonWidget().Account(null)); Assert.Throws <ArgumentException>(() => new PinterestFollowButtonWidget().Account(string.Empty)); var widget = new PinterestFollowButtonWidget(); Assert.Null(widget.Account()); Assert.True(ReferenceEquals(widget.Account("account"), widget)); Assert.Equal("account", widget.Account()); }