public void Header_Method()
 {
   var widget = new FacebookLikeBoxWidget();
   Assert.Null(widget.Header());
   Assert.True(ReferenceEquals(widget.Header(true), widget));
   Assert.True(widget.Header().Value);
 }
示例#2
0
        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());
    }
示例#4
0
        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());
        }
示例#5
0
        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());
        }
示例#6
0
        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());
 }
示例#8
0
        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());
    }