Skip to content

Commit 96c036b

Browse files
committed
Fixes 'mfs_FileCompleted' event handler where output directory doesnt exist which fixes 'TestHl7FileStream' & 'TestHl7FileMessageStream' TestApp Methods.
1 parent 2fd179d commit 96c036b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

NuGet/NHapiTools.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>NHapiTools</id>
5-
<version>1.11.0.0</version>
5+
<version>1.11.0.1</version>
66
<authors>Division by Zero</authors>
77
<owners>Division by Zero</owners>
88
<license type="file">LICENSE</license>

TestApp/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ private static void Main(string[] args)
4242
_parsedMessages = new List<IMessage>();
4343

4444
TestSourceGenerator();
45-
// HL7InputStreamMessageStringEnumerator is possibly broken throws DirectoryNotFoundException "Could not find part of the path." or the test is broken?
46-
//TestHl7FileStream();
47-
// HL7InputStreamMessageStringEnumerator is possibly broken throws DirectoryNotFoundException "Could not find part of the path." or the test is broken?
48-
//TestHl7FileMessageStream();
45+
TestHl7FileStream();
46+
TestHl7FileMessageStream();
4947
TestParserAutomatedContext();
5048
TestParserConfigurableContext();
5149
TestGenericMessageWrapper();
@@ -499,6 +497,7 @@ private static void SpinnerWhileWaiting(Action processingMethod)
499497
private static void mfs_FileCompleted(object sender, FileCompletedEventArgs e)
500498
{
501499
var path = _basePath + "\\TestApp\\TestMessages\\Done";
500+
Directory.CreateDirectory(path);
502501

503502
var fi = new FileInfo(e.FileName);
504503
fi.MoveTo(path + "\\" + fi.Name);

0 commit comments

Comments
 (0)