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

      var widget = new CackleLoginWidget();
      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 CackleLoginWidget().Account(null));
            Assert.Throws <ArgumentException>(() => new CackleLoginWidget().Account(string.Empty));

            var widget = new CackleLoginWidget();

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

            Assert.Null(widget.Account());
        }