File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/InformaticsGateway/Test/Services/Common Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,16 @@ public void RegisteredPlugIns_WhenCalled_ReturnsListOfPlugIns()
49
49
{
50
50
var factory = new OutputDataPlugInEngineFactory ( _fileSystem , _logger . Object ) ;
51
51
52
- var result = factory . RegisteredPlugIns ( ) ;
52
+ var result = factory . RegisteredPlugIns ( ) . OrderBy ( r => r . Value ) . ToArray ( ) ;
53
53
54
- Assert . Equal ( 3 , result . Count ) ;
54
+ Assert . Equal ( 3 , result . Length ) ;
55
55
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 ,
57
62
p => VerifyPlugIn ( p , typeof ( DicomDeidentifier ) ) ,
58
63
p => VerifyPlugIn ( p , typeof ( TestOutputDataPlugInAddMessage ) ) ,
59
64
p => VerifyPlugIn ( p , typeof ( TestOutputDataPlugInModifyDicomFile ) )
You can’t perform that action at this time.
0 commit comments