public void WriteTo_ManualSetup() { // Arrange JsonObjectNode simpleObjectNode = JsonObjectGraphs.CreateSimpleObject(); // Act var settings = new JsonWriterSettings(); settings.IndentChars = " "; var writer = JsonWriter.Create(settings); simpleObjectNode.Write(writer); string result = writer.ToString(); // Assert string expectedResult = File.ReadAllText("SimpleObject_WithSpaces.json"); Assert.AreEqual(expectedResult, result); }