Exemplo n.º 1
0
        public void ReadUnknownFP2()
        {
            var dcm = new DICOMObject();
            var fs  = new FloatingPointSingle(new Tag("30091047"), 25.0f);

            dcm.Add(fs);
            dcm.Write("test.dcm", new EvilDICOM.Core.IO.Writing.DICOMIOSettings()
            {
                TransferSyntax = EvilDICOM.Core.Enums.TransferSyntax.IMPLICIT_VR_LITTLE_ENDIAN
            });

            TagDictionary.AddEntry <FloatingPointSingle>("30091047", "MyCustomType");
            dcm = DICOMObject.Read("test.dcm");
            var found = dcm.FindAll("30091047");

            Assert.IsTrue(found.First() is FloatingPointSingle);
        }