public void DicomValueElement_GetEnum_ReturnsEnum() { const MockEnum expected = MockEnum.One; var element = new DicomSignedShort(DicomTag.ALinesPerFrame, (short)expected); var actual = element.Get <MockEnum>(); Assert.Equal(expected, actual); }
public void DicomSignedShortTest() { short[] values = new short[] { 5 }; //single Value element DicomSignedShort element = new DicomSignedShort(DicomTag.TagAngleSecondAxis, values); TestAddElementToDatasetAsString <short>(element, values); values = new short[] { 5, 8 }; //multi-value element element = new DicomSignedShort(DicomTag.CenterOfCircularExposureControlSensingRegion, values); TestAddElementToDatasetAsString <short>(element, values); }
public void DicomSignedShortAsDicomElement_Array_GetObjectArrayValue() { DicomElement element = new DicomSignedShort(DicomTag.SynchronizationChannel, 5, 8); Assert.Equal(new object[] { (short)5, (short)8 }, element.Get <object[]>()); }
public void DicomSignedShortAsDicomElement_Array_GetDefaultValue() { DicomElement element = new DicomSignedShort(DicomTag.SynchronizationChannel, 5, 8); Assert.Equal((short)5, element.Get <short>()); }