Skip to content

Commit eb3a701

Browse files
committed
tests
1 parent 942634c commit eb3a701

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/CodeQLToolkit.Shared.Tests/Utils/FileUtilsTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ public void TestCreateTempDirectory()
1818
{
1919
var dir = FileUtils.CreateTempDirectory();
2020
Assert.IsTrue(Directory.Exists(dir));
21+
Assert.IsTrue(dir.StartsWith(Path.GetTempPath()));
22+
}
23+
24+
[Test]
25+
public void TestCreateTempDirectoryWithPath()
26+
{
27+
var dir = FileUtils.CreateTempDirectory(Path.GetTempPath());
28+
Assert.IsTrue(Directory.Exists(dir));
29+
Assert.IsTrue(dir.StartsWith(Path.GetTempPath()));
30+
2131
}
2232
}
2333
}

0 commit comments

Comments
 (0)