Esempio n. 1
0
        public void Url_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookLikeBoxWidget().Url(null));
            Assert.Throws <ArgumentException>(() => new FacebookLikeBoxWidget().Url(string.Empty));

            var widget = new FacebookLikeBoxWidget();

            Assert.Null(widget.Url());
            Assert.True(ReferenceEquals(widget.Url("url"), widget));
            Assert.Equal("url", widget.Url());
        }
 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());
 }
Esempio n. 3
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 Url_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookLikeBoxWidget().Url(null));
      Assert.Throws<ArgumentException>(() => new FacebookLikeBoxWidget().Url(string.Empty));

      var widget = new FacebookLikeBoxWidget();
      Assert.Null(widget.Url());
      Assert.True(ReferenceEquals(widget.Url("url"), widget));
      Assert.Equal("url", widget.Url());
    }