public void TrackLabel_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookActivityFeedWidget().TrackLabel(null)); Assert.Throws <ArgumentException>(() => new FacebookActivityFeedWidget().TrackLabel(string.Empty)); var widget = new FacebookActivityFeedWidget(); Assert.Null(widget.TrackLabel()); Assert.True(ReferenceEquals(widget.TrackLabel("trackLabel"), widget)); Assert.Equal("trackLabel", widget.TrackLabel()); }
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 TrackLabel_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookActivityFeedWidget().TrackLabel(null)); Assert.Throws<ArgumentException>(() => new FacebookActivityFeedWidget().TrackLabel(string.Empty)); var widget = new FacebookActivityFeedWidget(); Assert.Null(widget.TrackLabel()); Assert.True(ReferenceEquals(widget.TrackLabel("trackLabel"), widget)); Assert.Equal("trackLabel", widget.TrackLabel()); }