Example #1
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new VkontakteCommunityWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new VkontakteCommunityWidget().Width(string.Empty));

            var widget = new VkontakteCommunityWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }
 public void Constructors()
 {
   var widget = new VkontakteCommunityWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.BackgroundColor());
   Assert.Null(widget.ButtonColor());
   Assert.Null(widget.ElementId());
   Assert.Equal((byte)VkontakteCommunityMode.Participants, widget.Mode());
   Assert.Null(widget.TextColor());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
 }
Example #3
0
        public void Constructors()
        {
            var widget = new VkontakteCommunityWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.BackgroundColor());
            Assert.Null(widget.ButtonColor());
            Assert.Null(widget.ElementId());
            Assert.Equal((byte)VkontakteCommunityMode.Participants, widget.Mode());
            Assert.Null(widget.TextColor());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
        }
    public void Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new VkontakteCommunityWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new VkontakteCommunityWidget().Width(string.Empty));

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