public void TestRegister() { const string uid = "1.2.3"; var registered = new TransferSyntax("a", "1.2.3", true, true, true, false, false, true); TransferSyntax.RegisterTransferSyntax(registered); Assert.IsTrue(TransferSyntax.TransferSyntaxes.Contains(registered)); var retrieved = TransferSyntax.GetTransferSyntax(uid); Assert.AreEqual(uid, retrieved.UidString); TransferSyntax.UnregisterTransferSyntax(registered); Assert.IsFalse(TransferSyntax.TransferSyntaxes.Contains(registered)); TransferSyntax.UnregisterTransferSyntax(registered); }
public void Deinitialize() { TransferSyntax.UnregisterTransferSyntax(NullDicomCodec.TransferSyntax); TransferSyntax.UnregisterTransferSyntax(GZipDicomCodec.TransferSyntax); }