public void GetDicomTag_ReturnsCorrectTag() { // Arrange var dicomTagAdapter = new DicomTagAdapter(); // Act var patientId = dicomTagAdapter.GetDicomTag(DicomTags.PatientID); var patientName = dicomTagAdapter.GetDicomTag(DicomTags.PatientName); // Arrange Assert.That(patientId, Is.EqualTo(DicomTag.PatientID)); Assert.That(patientName, Is.EqualTo(DicomTag.PatientName)); }
public void GetDicomTag_UndefinedDicomTag_ThrowsException() { // Arrange var dicomTagAdapter = new DicomTagAdapter(); // Act + Assert Assert.That(() => dicomTagAdapter.GetDicomTag(DicomTags.Undefined), Throws.ArgumentException); }