Exemplo n.º 1
0
        public void Layout_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookFollowButtonWidget().Layout(null));
            Assert.Throws <ArgumentException>(() => new FacebookFollowButtonWidget().Layout(string.Empty));

            var widget = new FacebookFollowButtonWidget();

            Assert.Null(widget.Layout());
            Assert.True(ReferenceEquals(widget.Layout("layout"), widget));
            Assert.Equal("layout", widget.Layout());
        }
 public void Constructors()
 {
   var widget = new FacebookFollowButtonWidget();
   Assert.Null(widget.ColorScheme());
   Assert.Null(widget.Faces());
   Assert.Null(widget.Height());
   Assert.Null(widget.KidsMode());
   Assert.Null(widget.Layout());
   Assert.Null(widget.Url());
   Assert.Null(widget.Width());
 }
Exemplo n.º 3
0
        public void Constructors()
        {
            var widget = new FacebookFollowButtonWidget();

            Assert.Null(widget.ColorScheme());
            Assert.Null(widget.Faces());
            Assert.Null(widget.Height());
            Assert.Null(widget.KidsMode());
            Assert.Null(widget.Layout());
            Assert.Null(widget.Url());
            Assert.Null(widget.Width());
        }
    public void Layout_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookFollowButtonWidget().Layout(null));
      Assert.Throws<ArgumentException>(() => new FacebookFollowButtonWidget().Layout(string.Empty));

      var widget = new FacebookFollowButtonWidget();
      Assert.Null(widget.Layout());
      Assert.True(ReferenceEquals(widget.Layout("layout"), widget));
      Assert.Equal("layout", widget.Layout());
    }