Skip to content

Commit

Permalink
MSS-3 Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed May 27, 2019
1 parent e277ff0 commit cea4b5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Rdmp.Core.Tests/Curation/ImportTests/GatherAndShareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public void GatherAndShare_Plugin_Test()
File.WriteAllBytes(f2.FullName, new byte[] { 0x3, 0x3 });

var plugin = new Core.Curation.Data.Plugin(CatalogueRepository,new FileInfo("Imaginary.zip"));
var lma1 = new LoadModuleAssembly(CatalogueRepository,f1,plugin);
var lma2 = new LoadModuleAssembly(CatalogueRepository, f2, plugin);
var lma1 = new LoadModuleAssembly(CatalogueRepository,f1,plugin,null);
var lma2 = new LoadModuleAssembly(CatalogueRepository, f2, plugin,null);

Assert.AreEqual(lma1.Plugin_ID, plugin.ID);
Assert.AreEqual(lma2.Plugin_ID, plugin.ID);
Expand Down
6 changes: 3 additions & 3 deletions Rdmp.Core.Tests/Curation/ImportTests/PluginClassTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void TestPlugin_PdbNull_Sharing()
File.WriteAllBytes(fi2.FullName, new byte[] { 0x1, 0x2 });

Core.Curation.Data.Plugin p = new Core.Curation.Data.Plugin(Repository,fi);
var lma = new LoadModuleAssembly(Repository, fi2, p);
var lma = new LoadModuleAssembly(Repository, fi2, p,null);

//Give it some pdb bytes
lma.Pdb = new byte[]{0x1};
Expand Down Expand Up @@ -124,8 +124,8 @@ public void TestPlugin_OrphanImport_Sharing()
File.WriteAllBytes(fi3.FullName, new byte[] { 0x3, 0x4 });

Core.Curation.Data.Plugin p = new Core.Curation.Data.Plugin(Repository, fi);
var lma = new LoadModuleAssembly(Repository, fi2, p);
var lma2 = new LoadModuleAssembly(Repository, fi3, p);
var lma = new LoadModuleAssembly(Repository, fi2, p,null);
var lma2 = new LoadModuleAssembly(Repository, fi3, p,null);

//gather dependencies of the plugin (plugin[0] + lma[1])
Gatherer g = new Gatherer(RepositoryLocator);
Expand Down
2 changes: 1 addition & 1 deletion Tests.Common/UnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected T WhenIHaveA<T>() where T : DatabaseEntity
var dll = Path.Combine(TestContext.CurrentContext.TestDirectory,"a.dll");
File.WriteAllBytes(dll,new byte[] {0x11});

return (T)(object)new LoadModuleAssembly(Repository,new FileInfo(dll),WhenIHaveA<Rdmp.Core.Curation.Data.Plugin>());
return (T)(object)new LoadModuleAssembly(Repository,new FileInfo(dll),WhenIHaveA<Rdmp.Core.Curation.Data.Plugin>(),null);
}

if (typeof (T) == typeof(AggregateContinuousDateAxis))
Expand Down

0 comments on commit cea4b5b

Please sign in to comment.