public void AddKnownDicomStatuses_WithFailure_IsLookedupCorrectly() { try { DicomStatus.AddKnownDicomStatuses(new[] { UPSIsAlreadyCompleted, SOPInstanceDoesNotExist }); var upsCompleteTest = DicomStatus.Lookup(UPSIsAlreadyCompleted.Code); Assert.Equal(UPSIsAlreadyCompleted, upsCompleteTest); Assert.Equal(UPSIsAlreadyCompleted.Code, upsCompleteTest.Code); Assert.Equal(UPSIsAlreadyCompleted.Description, upsCompleteTest.Description); var sopDoesNotExistTest = DicomStatus.Lookup(UPSIsAlreadyCompleted.Code); Assert.Equal(UPSIsAlreadyCompleted, sopDoesNotExistTest); Assert.Equal(UPSIsAlreadyCompleted.Code, sopDoesNotExistTest.Code); Assert.Equal(UPSIsAlreadyCompleted.Description, sopDoesNotExistTest.Description); } finally { DicomStatus.ResetEntries(); } }