public void JsonSerializing3() { var baseDataFile = TestUtils.folder + "/single_body_data"; var srcData = RecordingData.Read(baseDataFile + "_src_js.txt"); srcData.Write(baseDataFile + "_test1.txt"); var src2Data = RecordingData.Read(baseDataFile + "_test1.txt"); src2Data.Write(baseDataFile + "_test2.txt"); var src3Data = RecordingData.Read(baseDataFile + "_test2.txt"); src3Data.Write(baseDataFile + "_test3.txt"); }
private void ValidateWithSrcData(World world, int nbFrames, string testDataBaseName) { for (var i = 0; i < nbFrames; ++i) { world.Step(0.16f); } var baseDataFile = TestUtils.folder + "/" + testDataBaseName; if (!File.Exists(baseDataFile + "_src_sharp.txt")) { var srcData = RecordingData.Read(baseDataFile + "_src_js.txt"); srcData.Write(baseDataFile + "_src_sharp.txt"); } var refData = RecordingData.Read(baseDataFile + "_src_sharp.txt"); world.recorder.data.Write(baseDataFile + "_dst_sharp.txt"); Validate(refData, world.recorder.data); }