Пример #1
0
        public void ColorScheme_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookCommentsWidgetExtensions.ColorScheme(null, FacebookColorScheme.Dark));

            Assert.Equal("dark", new FacebookCommentsWidget().ColorScheme(FacebookColorScheme.Dark).ColorScheme());
            Assert.Equal("light", new FacebookCommentsWidget().ColorScheme(FacebookColorScheme.Light).ColorScheme());
        }
Пример #2
0
        public void Order_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookCommentsWidgetExtensions.Order(null, FacebookCommentsOrder.Social));

            Assert.Equal("reverse_time", new FacebookCommentsWidget().Order(FacebookCommentsOrder.ReverseTime).Order());
            Assert.Equal("social", new FacebookCommentsWidget().Order(FacebookCommentsOrder.Social).Order());
            Assert.Equal("time", new FacebookCommentsWidget().Order(FacebookCommentsOrder.Time).Order());
        }
Пример #3
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IFacebookCommentsWidgetExtensions.Width(null, 0));

            Assert.Equal("1", new FacebookCommentsWidget().Width(1).Width());
        }