public void Attach_Method()
 {
   var widget = new VkontakteCommentsWidget();
   Assert.False(widget.Attach().Any());
   Assert.True(ReferenceEquals(widget.Attach("first", "second"), widget));
   Assert.True(widget.Attach().SequenceEqual(new [] { "first", "second" }));
 }
Beispiel #2
0
        public void Attach_Method()
        {
            var widget = new VkontakteCommentsWidget();

            Assert.False(widget.Attach().Any());
            Assert.True(ReferenceEquals(widget.Attach("first", "second"), widget));
            Assert.True(widget.Attach().SequenceEqual(new [] { "first", "second" }));
        }
 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());
        }