Ejemplo n.º 1
0
        public void AcceptedTransferSyntax_ResultNotSet_IsNull()
        {
            var context = new DicomPresentationContext(0x05, DicomUID.EnhancedMRImageStorage);

            context.AddTransferSyntax(DicomTransferSyntax.JPEGLSLossless);
            Assert.Null(context.AcceptedTransferSyntax);
        }
Ejemplo n.º 2
0
        public void SetResult_OneArgument_AcceptedTransferSyntaxOnlyRequiredOnAcceptNullOtherwise(
            DicomPresentationContextResult result,
            DicomTransferSyntax acceptedSyntax)
        {
            var context = new DicomPresentationContext(0x01, DicomUID.Verification);

            context.AddTransferSyntax(acceptedSyntax);
            context.SetResult(result);

            Assert.Equal(result == DicomPresentationContextResult.Accept ? acceptedSyntax : null,
                         context.AcceptedTransferSyntax);
        }