Skip to content

Commit 5821850

Browse files
committed
debugging test
Signed-off-by: Neil South <[email protected]>
1 parent 90719f8 commit 5821850

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/InformaticsGateway/Test/Services/Common/OutputDataPluginEngineFactoryTest.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,16 @@ public void RegisteredPlugIns_WhenCalled_ReturnsListOfPlugIns()
4949
{
5050
var factory = new OutputDataPlugInEngineFactory(_fileSystem, _logger.Object);
5151

52-
var result = factory.RegisteredPlugIns();
52+
var result = factory.RegisteredPlugIns().OrderBy(r => r.Value).ToArray();
5353

54-
Assert.Equal(3, result.Count);
54+
Assert.Equal(3, result.Length);
5555

56-
Assert.Collection(result.OrderBy(r => r.Key),
56+
Assert.Equal(typeof(DicomDeidentifier).GetCustomAttribute<PlugInNameAttribute>().Name, result[0].Key);
57+
Assert.Equal(typeof(TestOutputDataPlugInAddMessage).GetCustomAttribute<PlugInNameAttribute>().Name, result[1].Key);
58+
Assert.Equal(typeof(TestOutputDataPlugInModifyDicomFile).GetCustomAttribute<PlugInNameAttribute>().Name, result[2].Key);
59+
60+
61+
Assert.Collection(result,
5762
p => VerifyPlugIn(p, typeof(DicomDeidentifier)),
5863
p => VerifyPlugIn(p, typeof(TestOutputDataPlugInAddMessage)),
5964
p => VerifyPlugIn(p, typeof(TestOutputDataPlugInModifyDicomFile))

0 commit comments

Comments
 (0)