public static void Log(Fixture fixture) { var path = GetPath(fixture); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } var sequence = fixture.Sequence; var filename = sequence + ".json"; var fullFilename = Path.Combine(path, filename); if (!File.Exists(fullFilename)) { var json = FixtureHelper.ToJson(fixture); System.IO.File.WriteAllText(fullFilename, json); } }