From bd01dfe6d26d1e8dcd2ae96c144f748d794c7b7c Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 6 Apr 2020 16:27:10 +0200 Subject: [PATCH] fix EDMI.File Test --- EDMI.File.Test/PathTest.vb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/EDMI.File.Test/PathTest.vb b/EDMI.File.Test/PathTest.vb index 77752502..b27d01a6 100644 --- a/EDMI.File.Test/PathTest.vb +++ b/EDMI.File.Test/PathTest.vb @@ -7,15 +7,16 @@ Imports DigitalData.Modules.EDMI Public Sub TestMethod1() Dim oLogConfig As New LogConfig(LogConfig.PathType.Temp) - Dim oPath As New DigitalData.Modules.EDMI.File.Path(oLogConfig) + Dim oTempPath = System.IO.Path.GetTempPath() + Dim oPath As New DigitalData.Modules.EDMI.File.Path(oLogConfig, oTempPath) Dim oNow As DateTime = DateTime.Now Dim oYear = oNow.Year Dim oMonth = oNow.Month.ToString.PadLeft(2, "0") Dim oDay = oNow.Day.ToString.PadLeft(2, "0") - Assert.AreEqual(oPath.GetActivePath("TestDocumentType"), $"EDMI\Active\TestDocumentType\{oYear}\{oMonth}\{oDay}") - Assert.AreEqual(oPath.GetArchivePath("TestDocumentType"), $"EDMI\Archive\TestDocumentType\{oYear}\{oMonth}\{oDay}") + Assert.AreEqual(oPath.GetActivePath("TestDocumentType"), $"{oTempPath}EDMI\Active\TestDocumentType\{oYear}\{oMonth}\{oDay}") + Assert.AreEqual(oPath.GetArchivePath("TestDocumentType"), $"{oTempPath}EDMI\Archive\TestDocumentType\{oYear}\{oMonth}\{oDay}") End Sub End Class \ No newline at end of file