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

      var widget = new VkontakteCommentsWidget();
      Assert.Null(widget.ElementId());
      Assert.True(ReferenceEquals(widget.ElementId("elementId"), widget));
      Assert.Equal("elementId", widget.ElementId());
    }
Beispiel #2
0
        public void ElementId_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new VkontakteCommentsWidget().ElementId(null));
            Assert.Throws <ArgumentException>(() => new VkontakteCommentsWidget().ElementId(string.Empty));

            var widget = new VkontakteCommentsWidget();

            Assert.Null(widget.ElementId());
            Assert.True(ReferenceEquals(widget.ElementId("elementId"), widget));
            Assert.Equal("elementId", widget.ElementId());
        }
 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());
 }
Beispiel #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());
        }