public void TestLoadCSVData() { csvData = CSVLoader.LoadCSVFromFile(Application.dataPath + Path.DirectorySeparatorChar + "Resources", SAMPLE_CSV_FILENAME); csvResourceDictionary = CSVReader.ReadFromResources(SAMPLE_CSV_RESOURCE_FILENAME); if (csvResourceDictionary.Count == csvData.Count) { if (csvData[0].Id == (int)csvResourceDictionary[0][RESOURCE_DB_SAMPLE_KEY_ID]) { Debug.Log("Item 0 ID match in Loader and Resource Read"); } if (csvData[2].Occupation == (string)csvResourceDictionary[2][RESOURCE_DB_SAMPLE_KEY_OCCUPATION]) { Debug.Log("Item 2 Occupation match in Loader and Resource Read"); } } //csvFileDictionary = CSVReader.ReadFromFilePath(Application.dataPath + Path.DirectorySeparatorChar + "Resources", SAMPLE_CSV_FILENAME); //if (csvFileDictionary.Count == csvData.Count) //{ // if (csvData[0].Id == (int)csvFileDictionary[0]["Id"]) // { // Debug.Log("Item 0 ID match in Loader and File Read"); // } // if (csvData[2].Occupation == (string)csvFileDictionary[2]["Occupation"]) // { // Debug.Log("Item 2 Occupation match in Loader and File Read"); // } //} }