public void Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new VkontakteCommentsWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new VkontakteCommentsWidget().Width(string.Empty));

      var widget = new VkontakteCommentsWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
Ejemplo n.º 2
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new VkontakteCommentsWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new VkontakteCommentsWidget().Width(string.Empty));

            var widget = new VkontakteCommentsWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }
 public void Constructors()
 {
   var widget = new VkontakteCommentsWidget();
   Assert.False(widget.Attach().Any());
   Assert.Null(widget.AutoPublish());
   Assert.Null(widget.AutoUpdate());
   Assert.Null(widget.ElementId());
   Assert.Equal((byte)VkontakteCommentsLimit.Limit5, widget.Limit());
   Assert.Null(widget.Mini());
   Assert.Null(widget.Width());
 }
Ejemplo n.º 4
0
        public void Constructors()
        {
            var widget = new VkontakteCommentsWidget();

            Assert.False(widget.Attach().Any());
            Assert.Null(widget.AutoPublish());
            Assert.Null(widget.AutoUpdate());
            Assert.Null(widget.ElementId());
            Assert.Equal((byte)VkontakteCommentsLimit.Limit5, widget.Limit());
            Assert.Null(widget.Mini());
            Assert.Null(widget.Width());
        }