public void Constructors()
        {
            var widget = new InlineImageWidget();

            Assert.Null(widget.Contents());
            Assert.Null(widget.Format());
        }
    public void Gif_Method()
    {
      Assert.Throws<ArgumentNullException>(() => IInlineImageExtensions.Gif(null));

      var widget = new InlineImageWidget();
      Assert.True(ReferenceEquals(widget.Gif(), widget));
      Assert.True(widget.Contents(Guid.Empty.ToByteArray()).ToHtmlString().Contains("data:gif"));
    }
        public void Gif_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IInlineImageExtensions.Gif(null));

            var widget = new InlineImageWidget();

            Assert.True(ReferenceEquals(widget.Gif(), widget));
            Assert.True(widget.Contents(Guid.Empty.ToByteArray()).ToHtmlString().Contains("data:gif"));
        }
    public void Contents_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new InlineImageWidget().Contents(null));

      var widget = new InlineImageWidget();
      Assert.Null(widget.Contents());
      Assert.True(ReferenceEquals(widget.Contents(Guid.Empty.ToByteArray()), widget));
      Assert.True(widget.Contents().SequenceEqual(Guid.Empty.ToByteArray()));
    }
        public void Contents_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new InlineImageWidget().Contents(null));

            var widget = new InlineImageWidget();

            Assert.Null(widget.Contents());
            Assert.True(ReferenceEquals(widget.Contents(Guid.Empty.ToByteArray()), widget));
            Assert.True(widget.Contents().SequenceEqual(Guid.Empty.ToByteArray()));
        }
    public void Format_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new InlineImageWidget().Format(null));
      Assert.Throws<ArgumentException>(() => new InlineImageWidget().Format(string.Empty));

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

            var widget = new InlineImageWidget();

            Assert.Null(widget.Format());
            Assert.True(ReferenceEquals(widget.Format("format"), widget));
            Assert.Equal("format", widget.Format());
        }
 public void Constructors()
 {
   var widget = new InlineImageWidget();
   Assert.Null(widget.Contents());
   Assert.Null(widget.Format());
 }