public void ColorScheme_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookRecommendationsFeedWidgetExtensions.ColorScheme(null, FacebookColorScheme.Dark)); Assert.Equal("dark", new FacebookRecommendationsFeedWidget().ColorScheme(FacebookColorScheme.Dark).ColorScheme()); Assert.Equal("light", new FacebookRecommendationsFeedWidget().ColorScheme(FacebookColorScheme.Light).ColorScheme()); }
public void Actions_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookRecommendationsFeedWidgetExtensions.Actions(null, Enumerable.Empty <string>().ToArray())); Assert.False(new FacebookRecommendationsFeedWidget().Actions().Any()); Assert.True(new FacebookRecommendationsFeedWidget().Actions("first", "second").Actions().SequenceEqual(new[] { "first", "second" })); }
public void Height_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookRecommendationsFeedWidgetExtensions.Height(null, 0)); Assert.Equal("1", new FacebookRecommendationsFeedWidget().Height(1).Height()); }