Skip to content

Commit

Permalink
More unit test fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jas88 committed Mar 18, 2022
1 parent c1e9e39 commit f873589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions DicomTypeTranslation.Tests/DicomTypeTranslatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,12 @@ public void CheckForNewVrs()
Assert.AreEqual(34, TranslationTestHelpers.AllVrCodes.Length);
}

[Test]
[TestCase("SV")]
[TestCase("UV")]
public void TestVrsWithNoTags(string vrName)
{
DicomVR vr = DicomVR.Parse(vrName);

// NOTE(rkm 2020-03-25) When this fails, add an entry for the new VR to the datasets TranslationTestHelpers
// NOTE(jas 2022-03-18) No VRs seem to fall in this category now with fo-dicom 5?
List<DicomTag> vrTags = typeof(DicomTag)
.GetFields(BindingFlags.Static | BindingFlags.Public)
.Where(field => field.FieldType == typeof(DicomTag))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static DicomDataset BuildVrDataset(DicomVR singleVr = null)
var ds = new DicomDataset
{
new DicomApplicationEntity(DicomTag.RetrieveAETitle, "AppEntity-1", "AppEntity-2"),
new DicomAgeString(DicomTag.PatientAge, "034y", "032y"),
new DicomAgeString(DicomTag.PatientAge, "034Y", "032Y"),
new DicomAttributeTag(DicomTag.SelectorATValue, DicomTag.SOPInstanceUID, DicomTag.SeriesInstanceUID),
new DicomCodeString(DicomTag.QualityControlImage, "FOOBAR", "OOFRAB"),
new DicomDate(DicomTag.AcquisitionDate, "20000229", "20180401"),
Expand Down

0 comments on commit f873589

Please sign in to comment.