public void TestSave() { var trainingData = CreateTrainingData(); var path = TrainingDataUtils.BuildDataFilePath("test-data"); if (File.Exists(path)) { File.Delete(path); } var writer = new TrainingDataWriter(); writer.Save(trainingData, path); Assert.IsTrue(File.Exists(path)); }
public void TestPathBuilder() { var path = TrainingDataUtils.BuildDataFilePath("test-data"); Assert.AreEqual(Application.dataPath + "/Data/test-data.txt", path); }