File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public static class ArtifactTypes
2222 {
2323 { ArtifactType . Unset , "Unset" } ,
2424 { ArtifactType . Folder , "Folders" } ,
25+ { ArtifactType . HL7 , "HL7 message" } ,
2526 { ArtifactType . AR , "Autorefract" } ,
2627 { ArtifactType . ASMT , "Content Assessment Results" } ,
2728 { ArtifactType . AU , "Audio" } ,
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ using System ;
1718using Monai . Deploy . Messaging . Common ;
1819using Xunit ;
1920
@@ -32,5 +33,21 @@ public void ArtifactTypeInvalid_ShouldReturnFalse()
3233 {
3334 Assert . False ( ArtifactTypes . Validate ( "false" ) ) ;
3435 }
36+
37+ [ Fact ]
38+ public void ArtifactTypeNull_ShouldReturnFalse ( )
39+ {
40+ Assert . False ( ArtifactTypes . Validate ( null ) ) ;
41+ }
42+
43+ [ Fact ]
44+ public void ArtifactTypes_Should_Contain_All ( )
45+ {
46+ foreach ( var artifactType in Enum . GetValues ( typeof ( ArtifactType ) ) )
47+ {
48+ Assert . True ( ArtifactTypes . ListOfModularity . ContainsKey ( ( ArtifactType ) artifactType ) ) ;
49+ }
50+ }
51+
3552 }
3653}
You can’t perform that action at this time.
0 commit comments