public void Account_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new PinterestProfileWidget().Account(null));
      Assert.Throws<ArgumentException>(() => new PinterestProfileWidget().Account(string.Empty));

      var widget = new PinterestProfileWidget();
      Assert.Null(widget.Account());
      Assert.True(ReferenceEquals(widget.Account("account"), widget));
      Assert.Equal("account", widget.Account());
    }
Exemplo n.º 2
0
        public void Account_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new PinterestProfileWidget().Account(null));
            Assert.Throws <ArgumentException>(() => new PinterestProfileWidget().Account(string.Empty));

            var widget = new PinterestProfileWidget();

            Assert.Null(widget.Account());
            Assert.True(ReferenceEquals(widget.Account("account"), widget));
            Assert.Equal("account", widget.Account());
        }
 public void Constructors()
 {
   var widget = new PinterestProfileWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.Height());
   Assert.Null(widget.Width());
   Assert.Null(widget.Image());
 }
Exemplo n.º 4
0
        public void Constructors()
        {
            var widget = new PinterestProfileWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.Height());
            Assert.Null(widget.Width());
            Assert.Null(widget.Image());
        }