public void LinkTarget_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookActivityFeedWidget().LinkTarget(null)); Assert.Throws <ArgumentException>(() => new FacebookActivityFeedWidget().LinkTarget(string.Empty)); var widget = new FacebookActivityFeedWidget(); Assert.Null(widget.LinkTarget()); Assert.True(ReferenceEquals(widget.LinkTarget("linkTarget"), widget)); Assert.Equal("linkTarget", widget.LinkTarget()); }
public void Constructors() { var widget = new FacebookActivityFeedWidget(); Assert.False(widget.Actions().Any()); Assert.Null(widget.AppId()); Assert.Null(widget.ColorScheme()); Assert.Null(widget.Domain()); Assert.Null(widget.Header()); Assert.Null(widget.Height()); Assert.Null(widget.LinkTarget()); Assert.Null(widget.MaxAge()); Assert.Null(widget.Recommendations()); Assert.Null(widget.TrackLabel()); Assert.Null(widget.Width()); }
public void LinkTarget_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookActivityFeedWidget().LinkTarget(null)); Assert.Throws<ArgumentException>(() => new FacebookActivityFeedWidget().LinkTarget(string.Empty)); var widget = new FacebookActivityFeedWidget(); Assert.Null(widget.LinkTarget()); Assert.True(ReferenceEquals(widget.LinkTarget("linkTarget"), widget)); Assert.Equal("linkTarget", widget.LinkTarget()); }