public void SaveAllTest(string type, string name) { FileTestHelper.CreateDummyFile(type, name); manager.LoadAllResources(); var resource = manager.GetAllResources(type).FirstOrDefault(); byte[] bytes = new byte[] { 1, 1, 1, 1, 1, 1 }; //resource.Value = bytes; manager.AddOrUpdateResource(type, name, bytes); manager.SaveAll(); manager.LoadAllResources(); var resource2 = manager.GetResource(type, name); Assert.Equal(bytes, resource2); }