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

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

            var widget = new TumblrFollowButtonWidget();

            Assert.Null(widget.Account());
            Assert.True(ReferenceEquals(widget.Account("account"), widget));
            Assert.Equal("account", widget.Account());
        }
 public void Constructors()
 {
   var widget = new TumblrFollowButtonWidget();
   Assert.Null(widget.Account());
   Assert.Equal((byte) TumblrFollowButtonType.First, widget.Type());
   Assert.Equal(TumblrFollowButtonColorScheme.Light.ToString().ToLowerInvariant(), widget.ColorScheme());
 }
Esempio n. 4
0
        public void Constructors()
        {
            var widget = new TumblrFollowButtonWidget();

            Assert.Null(widget.Account());
            Assert.Equal((byte)TumblrFollowButtonType.First, widget.Type());
            Assert.Equal(TumblrFollowButtonColorScheme.Light.ToString().ToLowerInvariant(), widget.ColorScheme());
        }