public void MaxRows_Method()
 {
   var widget = new FacebookFacepileWidget();
   Assert.Null(widget.MaxRows());
   Assert.True(ReferenceEquals(widget.MaxRows(1), widget));
   Assert.Equal(1, widget.MaxRows().Value);
 }
Exemplo n.º 2
0
        public void MaxRows_Method()
        {
            var widget = new FacebookFacepileWidget();

            Assert.Null(widget.MaxRows());
            Assert.True(ReferenceEquals(widget.MaxRows(1), widget));
            Assert.Equal(1, widget.MaxRows().Value);
        }
    public void Actions_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookFacepileWidget().Actions(null));

      var widget = new FacebookFacepileWidget();
      Assert.False(widget.Actions().Any());
      Assert.True(ReferenceEquals(widget.Actions(new[] { "first", "second" }), widget));
      Assert.True(widget.Actions().SequenceEqual(new[] { "first", "second" }));
    }
    public void Height_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookFacepileWidget().Height(null));
      Assert.Throws<ArgumentException>(() => new FacebookFacepileWidget().Height(string.Empty));

      var widget = new FacebookFacepileWidget();
      Assert.Null(widget.Height());
      Assert.True(ReferenceEquals(widget.Height("height"), widget));
      Assert.Equal("height", widget.Height());
    }
    public void ColorScheme_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookFacepileWidget().ColorScheme(null));
      Assert.Throws<ArgumentException>(() => new FacebookFacepileWidget().ColorScheme(string.Empty));

      var widget = new FacebookFacepileWidget();
      Assert.Null(widget.ColorScheme());
      Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget));
      Assert.Equal("colorScheme", widget.ColorScheme());
    }
Exemplo n.º 6
0
        public void Actions_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookFacepileWidget().Actions(null));

            var widget = new FacebookFacepileWidget();

            Assert.False(widget.Actions().Any());
            Assert.True(ReferenceEquals(widget.Actions(new[] { "first", "second" }), widget));
            Assert.True(widget.Actions().SequenceEqual(new[] { "first", "second" }));
        }
 public void Constructors()
 {
   var widget = new FacebookFacepileWidget();
   Assert.False(widget.Actions().Any());
   Assert.Null(widget.ColorScheme());
   Assert.Null(widget.Height());
   Assert.Null(widget.MaxRows());
   Assert.Null(widget.PhotoSize());
   Assert.Null(widget.Url());
   Assert.Null(widget.Width());
 }
Exemplo n.º 8
0
        public void PhotoSize_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookFacepileWidget().PhotoSize(null));
            Assert.Throws <ArgumentException>(() => new FacebookFacepileWidget().PhotoSize(string.Empty));

            var widget = new FacebookFacepileWidget();

            Assert.Null(widget.PhotoSize());
            Assert.True(ReferenceEquals(widget.PhotoSize("photoSize"), widget));
            Assert.Equal("photoSize", widget.PhotoSize());
        }
Exemplo n.º 9
0
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookFacepileWidget().Height(null));
            Assert.Throws <ArgumentException>(() => new FacebookFacepileWidget().Height(string.Empty));

            var widget = new FacebookFacepileWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
Exemplo n.º 10
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookFacepileWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new FacebookFacepileWidget().Width(string.Empty));

            var widget = new FacebookFacepileWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }
Exemplo n.º 11
0
        public void Constructors()
        {
            var widget = new FacebookFacepileWidget();

            Assert.False(widget.Actions().Any());
            Assert.Null(widget.ColorScheme());
            Assert.Null(widget.Height());
            Assert.Null(widget.MaxRows());
            Assert.Null(widget.PhotoSize());
            Assert.Null(widget.Url());
            Assert.Null(widget.Width());
        }
    public void Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookFacepileWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new FacebookFacepileWidget().Width(string.Empty));

      var widget = new FacebookFacepileWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }