示例#1
0
        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));
        }
示例#2
0
        public void TestPathBuilder()
        {
            var path = TrainingDataUtils.BuildDataFilePath("test-data");

            Assert.AreEqual(Application.dataPath + "/Data/test-data.txt", path);
        }