text: ﻿namespace FluentAssertions.Formatting
  {
      public class NullValueFormatter : IValueFormatter
      {
          /// <summary>
          /// Indicates whether the current <see cref="IValueFormatter"/> can handle the specified <paramref name="value"/>.
          /// </summary>
          /// <param name="value">The value for which to create a <see cref="string"/>.</param>
          /// <returns>
          /// <c>true</c> if the current <see cref="IValueFormatter"/> can handle the specified value; otherwise, <c>false</c>.
          /// </returns>
          public bool CanHandle(object value)
          {
              return value is null;
          }
  
          /// <inheritdoc />
          public string Format(object value, FormattingContext context, FormatChild formatChild)
          {
              return "<null>";
          }
      }
  }
  