public void ColorScheme_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookFacepileWidgetExtensions.ColorScheme(null, FacebookColorScheme.Dark)); Assert.Equal("dark", new FacebookFacepileWidget().ColorScheme(FacebookColorScheme.Dark).ColorScheme()); Assert.Equal("light", new FacebookFacepileWidget().ColorScheme(FacebookColorScheme.Light).ColorScheme()); }
public void Actions_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookFacepileWidgetExtensions.Actions(null)); Assert.False(new FacebookFacepileWidget().Actions().Any()); Assert.Equal("actions", new FacebookFacepileWidget().Actions("actions").Actions().Single()); }
public void PhotoSize_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookFacepileWidgetExtensions.PhotoSize(null, FacebookFacepilePhotoSize.Large)); Assert.Equal("large", new FacebookFacepileWidget().PhotoSize(FacebookFacepilePhotoSize.Large).PhotoSize()); Assert.Equal("medium", new FacebookFacepileWidget().PhotoSize(FacebookFacepilePhotoSize.Medium).PhotoSize()); Assert.Equal("small", new FacebookFacepileWidget().PhotoSize(FacebookFacepilePhotoSize.Small).PhotoSize()); }
public void Height_Method() { Assert.Throws <ArgumentNullException>(() => IFacebookFacepileWidgetExtensions.Height(null, 0)); Assert.Equal("1", new FacebookFacepileWidget().Height(1).Height()); }