WriteNull() публичный Метод

public WriteNull ( ) : void
Результат void
        public void CustomJsonTextWriterTests()
        {
            StringWriter         sw     = new StringWriter();
            CustomJsonTextWriter writer = new CustomJsonTextWriter(sw)
            {
                Formatting = Formatting.Indented
            };

            writer.WriteStartObject();
            Assert.AreEqual(WriteState.Object, writer.WriteState);
            writer.WritePropertyName("Property1");
            Assert.AreEqual(WriteState.Property, writer.WriteState);
            Assert.AreEqual("Property1", writer.Path);
            writer.WriteNull();
            Assert.AreEqual(WriteState.Object, writer.WriteState);
            writer.WriteEndObject();
            Assert.AreEqual(WriteState.Start, writer.WriteState);

            Assert.AreEqual(@"{{{
  ""1ytreporP"": NULL!!!
}}}", sw.ToString());
        }
    public void CustomJsonTextWriterTests()
    {
      StringWriter sw = new StringWriter();
      CustomJsonTextWriter writer = new CustomJsonTextWriter(sw) { Formatting = Formatting.Indented };
      writer.WriteStartObject();
      Assert.AreEqual(WriteState.Object, writer.WriteState);
      writer.WritePropertyName("Property1");
      Assert.AreEqual(WriteState.Property, writer.WriteState);
      Assert.AreEqual("Property1", writer.Path);
      writer.WriteNull();
      Assert.AreEqual(WriteState.Object, writer.WriteState);
      writer.WriteEndObject();
      Assert.AreEqual(WriteState.Start, writer.WriteState);

      Assert.AreEqual(@"{{{
  ""1ytreporP"": NULL!!!
}}}", sw.ToString());
    }