public void Test_Excluded_BigBinary() { DicomFile real; var instanceXml = GetInstanceXml(null, out real); using (var instance = new TestInstance(instanceXml, real)) { Assert.AreEqual("MR", instance[DicomTags.Modality].ToString()); Assert.AreEqual(false, instance._fullHeaderLoaded); var bytes = (byte[])instance[DicomTags.RedPaletteColorLookupTableData].Values; Assert.AreEqual(2048, bytes.Length); Assert.AreEqual(true, instance._fullHeaderLoaded); } }
public void Test_Excluded_Private() { DicomFile real; var instanceXml = GetInstanceXml(null, out real); using (var instance = new TestInstance(instanceXml, real)) { Assert.AreEqual("MR", instance[DicomTags.Modality].ToString()); Assert.AreEqual(false, instance._fullHeaderLoaded); var privateAttribute = instance[0x00111301]; Assert.AreEqual(true, instance._fullHeaderLoaded); Assert.AreEqual("Private", privateAttribute.ToString()); } }
public void Test_Excluded_SequenceAttribute() { DicomFile real; var instanceXml = GetInstanceXml(null, out real); using (var instance = new TestInstance(instanceXml, real)) { Assert.AreEqual("MR", instance[DicomTags.Modality].ToString()); Assert.AreEqual(false, instance._fullHeaderLoaded); var sequences = (DicomSequenceItem[])instance[DicomTags.RequestAttributesSequence].Values; var sequenceItem = sequences.First(); var bytes = (byte[])sequenceItem[DicomTags.RedPaletteColorLookupTableData].Values; Assert.AreEqual(2048, bytes.Length); Assert.AreEqual(true, instance._fullHeaderLoaded); } }
public void Test_Excluded_PrivateSequenceAttribute() { DicomFile real; var outputSettings = new StudyXmlOutputSettings { //If this were enabled, it would work. //IncludePrivateValues = StudyXmlTagInclusion.IncludeTagExclusion }; var instanceXml = GetInstanceXml(outputSettings, out real); using (var instance = new TestInstance(instanceXml, real)) { Assert.AreEqual("MR", instance[DicomTags.Modality].ToString()); Assert.AreEqual(false, instance._fullHeaderLoaded); var sequences = (DicomSequenceItem[])instance[DicomTags.ReferencedStudySequence].Values; Assert.AreEqual(true, instance._fullHeaderLoaded); var sequenceItem = sequences.First(); var privateAttribute = sequenceItem[0x00111301]; Assert.AreEqual("Private", privateAttribute.ToString()); } }
public void Test_Excluded_BigBinary() { DicomFile real; var instanceXml = GetInstanceXml(null, out real); using (var instance = new TestInstance(instanceXml, real)) { Assert.AreEqual("MR", instance[DicomTags.Modality].ToString()); Assert.AreEqual(false, instance._fullHeaderLoaded); var bytes = (byte[]) instance[DicomTags.RedPaletteColorLookupTableData].Values; Assert.AreEqual(2048, bytes.Length); Assert.AreEqual(true, instance._fullHeaderLoaded); } }