Esempio n. 1
0
        public void Save(DriveTrainingData data, string path)
        {
            var trainningFile = File.CreateText(path);
            var entries       = data.GetUniqueEntriesList();

            foreach (var entry in entries)
            {
                var parsedEntry = TrainingDataUtils.ParseTrainingDataEntry(entry);
                trainningFile.WriteLine(parsedEntry);
            }

            trainningFile.Close();

            Assert.IsTrue(File.Exists(path));
        }
Esempio n. 2
0
 void Start()
 {
     trainingData = new DriveTrainingData();
 }