public void AppId_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookRecommendationsFeedWidget().AppId(null));
      Assert.Throws<ArgumentException>(() => new FacebookRecommendationsFeedWidget().AppId(string.Empty));

      var widget = new FacebookRecommendationsFeedWidget();
      Assert.Null(widget.AppId());
      Assert.True(ReferenceEquals(widget.AppId("appId"), widget));
      Assert.Equal("appId", widget.AppId());
    }
Example #2
0
        public void AppId_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookRecommendationsFeedWidget().AppId(null));
            Assert.Throws <ArgumentException>(() => new FacebookRecommendationsFeedWidget().AppId(string.Empty));

            var widget = new FacebookRecommendationsFeedWidget();

            Assert.Null(widget.AppId());
            Assert.True(ReferenceEquals(widget.AppId("appId"), widget));
            Assert.Equal("appId", widget.AppId());
        }
 public void Constructors()
 {
   var widget = new FacebookRecommendationsFeedWidget();
   Assert.Null(widget.Domain());
   Assert.Null(widget.AppId());
   Assert.False(widget.Actions().Any());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.Null(widget.ColorScheme());
   Assert.Null(widget.Header());
   Assert.Null(widget.LinkTarget());
   Assert.Null(widget.MaxAge());
   Assert.Null(widget.TrackLabel());
 }
Example #4
0
        public void Constructors()
        {
            var widget = new FacebookRecommendationsFeedWidget();

            Assert.Null(widget.Domain());
            Assert.Null(widget.AppId());
            Assert.False(widget.Actions().Any());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
            Assert.Null(widget.ColorScheme());
            Assert.Null(widget.Header());
            Assert.Null(widget.LinkTarget());
            Assert.Null(widget.MaxAge());
            Assert.Null(widget.TrackLabel());
        }