Exemple #1
0
        public void ColorScheme_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookActivityFeedWidgetExtensions.ColorScheme(null, FacebookColorScheme.Dark));

            Assert.Equal("dark", new FacebookActivityFeedWidget().ColorScheme(FacebookColorScheme.Dark).ColorScheme());
            Assert.Equal("light", new FacebookActivityFeedWidget().ColorScheme(FacebookColorScheme.Light).ColorScheme());
        }
Exemple #2
0
        public void Actions_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookActivityFeedWidgetExtensions.Actions(null, Enumerable.Empty <string>().ToArray()));

            Assert.False(new FacebookActivityFeedWidget().Actions().Any());
            Assert.True(new FacebookActivityFeedWidget().Actions("first", "second").Actions().SequenceEqual(new [] { "first", "second" }));
        }
Exemple #3
0
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookActivityFeedWidgetExtensions.Height(null, 0));

            Assert.Equal("1", new FacebookActivityFeedWidget().Height(1).Height());
        }