Changeset 2766 for branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment.Test/PluginStoreTest.cs
- Timestamp:
- 02/08/10 19:14:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment.Test/PluginStoreTest.cs
r2742 r2766 194 194 // check if the updated file is returned 195 195 byte[] actual = target.PluginFile(newPlugin); 196 Assert.AreEqual(expected, actual); 196 // check retrieved file 197 Assert.AreEqual(expected.Length, actual.Length); 198 for (int i = 0; i < expected.Length; i++) { 199 Assert.AreEqual(expected[i], actual[i]); 200 } 197 201 } 198 202 #endregion … … 236 240 var plugin = new PluginDescription(pluginName, vers01, new PluginDescription[] { depPlugin, depPlugin }); 237 241 try { 238 target.Persist( depPlugin, enc.GetBytes("Zipped " + depName));242 target.Persist(plugin, enc.GetBytes("Zipped " + depName)); 239 243 Assert.Fail("Expected ArgumentException"); 240 244 } … … 372 376 373 377 // persist the plugin first 374 int oldCount = target.Products.Count();375 378 target.Persist(plugin1, enc.GetBytes("Zipped " + plugin1.Name)); 376 target.Persist(product);377 int newCount = target.Products.Count();378 // make sure the store went through379 Assert.AreEqual(oldCount + 1, newCount);380 381 379 try { 382 380 target.Persist(product);
Note: See TracChangeset
for help on using the changeset viewer.