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

            Assert.Equal("dark", new FacebookFollowButtonWidget().ColorScheme(FacebookColorScheme.Dark).ColorScheme());
            Assert.Equal("light", new FacebookFollowButtonWidget().ColorScheme(FacebookColorScheme.Light).ColorScheme());
        }
Beispiel #2
0
        public void Layout_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookFollowButtonWidgetExtensions.Layout(null, FacebookButtonLayout.BoxCount));

            Assert.Equal("box_count", new FacebookFollowButtonWidget().Layout(FacebookButtonLayout.BoxCount).Layout());
            Assert.Equal("button_count", new FacebookFollowButtonWidget().Layout(FacebookButtonLayout.ButtonCount).Layout());
            Assert.Equal("standard", new FacebookFollowButtonWidget().Layout(FacebookButtonLayout.Standard).Layout());
        }
Beispiel #3
0
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookFollowButtonWidgetExtensions.Height(null, 0));

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