public void Format_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new GravatarProfileUrlWidget().Format(null));
      Assert.Throws<ArgumentException>(() => new GravatarProfileUrlWidget().Format(string.Empty));

      var widget = new GravatarProfileUrlWidget();
      Assert.Null(widget.Format());
      Assert.True(ReferenceEquals(widget.Format("format"), widget));
      Assert.Equal("format", widget.Format());
    }
        public void Format_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new GravatarProfileUrlWidget().Format(null));
            Assert.Throws <ArgumentException>(() => new GravatarProfileUrlWidget().Format(string.Empty));

            var widget = new GravatarProfileUrlWidget();

            Assert.Null(widget.Format());
            Assert.True(ReferenceEquals(widget.Format("format"), widget));
            Assert.Equal("format", widget.Format());
        }
 public void Constructors()
 {
   var widget = new GravatarProfileUrlWidget();
   Assert.Null(widget.Hash());
   Assert.Null(widget.Format());
   Assert.False(widget.Field("parameters").To<IDictionary<string, object>>().Any());
 }
        public void Constructors()
        {
            var widget = new GravatarProfileUrlWidget();

            Assert.Null(widget.Hash());
            Assert.Null(widget.Format());
            Assert.False(widget.Field("parameters").To <IDictionary <string, object> >().Any());
        }