public void CEchoToWrongAeTitle()
        {
            int exitCode = 0;
            var output   = DcmtkLauncher.EchoScu($"-aet PACS1 -aec blabla", out exitCode);

            Assert.Equal(1, exitCode);
            output.Where(p => p == "F: Reason: Called AE Title Not Recognized").Should().HaveCount(1);
        }
        public void CEchoAbortAssociation()
        {
            int exitCode = 0;
            var output   = DcmtkLauncher.EchoScu($"-aet PACS1 -aec {AE_CECHOTEST} --abort", out exitCode);

            Assert.Equal(0, exitCode);

            output.Where(p => p == "I: Aborting Association").Should().HaveCount(1);
        }
        public void CEchoFromKnownSourceAeTitle(string sourceAeTitle)
        {
            int exitCode = 0;
            var output   = DcmtkLauncher.EchoScu($"-aet {sourceAeTitle} -aec {AE_CECHOTEST}", out exitCode);

            Assert.Equal(0, exitCode);

            output.Where(p => p.Contains("I: Association Accepted")).Should().HaveCount(1);
        }
        public void CEchoFromUnknownSourceAeTitle()
        {
            int exitCode = 0;
            var output   = DcmtkLauncher.EchoScu($"-aet UNKNOWNSCU -aec {AE_CECHOTEST}", out exitCode);

            Assert.Equal(1, exitCode);

            output.Where(p => p == "F: Reason: Calling AE Title Not Recognized").Should().HaveCount(1);
        }