public void ScpShouldRejectUnknownCalledAeTitle() { var testCase = "1-scp-explicitVrLittleEndian"; int exitCode = 0; var output = DcmtkLauncher.StoreScu( _testFileSetsFixture.FileSetPaths[testCase].First().FileDirectoryPath, "-xb", $"-v -aet PACS1 -aec UNKNOWN", out exitCode); Assert.Equal(1, exitCode); output.Where(p => p == "F: Reason: Called AE Title Not Recognized").Should().HaveCount(1); }
private string[] SendData(string testCase, string callingAet, string calledAet, int expectedExitCode) { int exitCode = 0; var output = DcmtkLauncher.StoreScu( _testFileSetsFixture.FileSetPaths[testCase].First().FileDirectoryPath, "-xb", $"-v -aet {callingAet} -aec {calledAet}", out exitCode, "1114"); Assert.Equal(expectedExitCode, exitCode); return(output); }