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()); }
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()); }
public void Height_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookFollowButtonWidgetExtensions.Height(null, 0)); Assert.Equal("1", new FacebookFollowButtonWidget().Height(1).Height()); }