public void Header_Method() { var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.Header()); Assert.True(ReferenceEquals(widget.Header(true), widget)); Assert.True(widget.Header().Value); }
public void ColorScheme_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookLikeBoxWidget().ColorScheme(null)); Assert.Throws<ArgumentException>(() => new FacebookLikeBoxWidget().ColorScheme(string.Empty)); var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.ColorScheme()); Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget)); Assert.Equal("colorScheme", widget.ColorScheme()); }
public void Height_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookLikeBoxWidget().Height(null)); Assert.Throws <ArgumentException>(() => new FacebookLikeBoxWidget().Height(string.Empty)); var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.Height()); Assert.True(ReferenceEquals(widget.Height("height"), widget)); Assert.Equal("height", widget.Height()); }
public void ColorScheme_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookLikeBoxWidget().ColorScheme(null)); Assert.Throws <ArgumentException>(() => new FacebookLikeBoxWidget().ColorScheme(string.Empty)); var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.ColorScheme()); Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget)); Assert.Equal("colorScheme", widget.ColorScheme()); }
public void Width_Method() { Assert.Throws <ArgumentNullException>(() => new FacebookLikeBoxWidget().Width(null)); Assert.Throws <ArgumentException>(() => new FacebookLikeBoxWidget().Width(string.Empty)); var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }
public void Constructors() { var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.Border()); Assert.Null(widget.ColorScheme()); Assert.Null(widget.Faces()); Assert.Null(widget.Header()); Assert.Null(widget.Height()); Assert.Null(widget.Stream()); Assert.Null(widget.Url()); Assert.Null(widget.Wall()); Assert.Null(widget.Width()); }
public void Height_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookLikeBoxWidget().Height(null)); Assert.Throws<ArgumentException>(() => new FacebookLikeBoxWidget().Height(string.Empty)); var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.Height()); Assert.True(ReferenceEquals(widget.Height("height"), widget)); Assert.Equal("height", widget.Height()); }
public void Width_Method() { Assert.Throws<ArgumentNullException>(() => new FacebookLikeBoxWidget().Width(null)); Assert.Throws<ArgumentException>(() => new FacebookLikeBoxWidget().Width(string.Empty)); var widget = new FacebookLikeBoxWidget(); Assert.Null(widget.Width()); Assert.True(ReferenceEquals(widget.Width("width"), widget)); Assert.Equal("width", widget.Width()); }