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

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

            var widget = new CackleCommentsWidget();

            Assert.Null(widget.Account());
            Assert.True(ReferenceEquals(widget.Account("account"), widget));
            Assert.Equal("account", widget.Account().To <string>());
        }
Example #3
0
        public void Constructors()
        {
            var widget = new CackleCommentsWidget();

            Assert.Null(widget.Account());
        }
 public void Constructors()
 {
   var widget = new CackleCommentsWidget();
   Assert.Null(widget.Account());
 }