public void Save(string type, Dictionary <string, byte[]> resources) { foreach (var resource in resources) { AddResourceToList(resource.Key, type, resource.Value); _fileAssistant.SaveFile(resource.Key, resource.Value); } //SaveAll(); }
public void SaveFileTest() { //FileTestHelper.CreateDummyFile("Test\\TEst2323","asd.txt"); byte[] bytes = new byte[] { 1, 3, 4, 5, 33, 2, 32, 32 }; string path = "Data\\testSave.txt"; fileAssistant.SaveFile(path, bytes); byte[] bytes2 = File.ReadAllBytes(path); Assert.Equal(bytes, bytes2); }