Add WASI unit tests for the C# API.

This commit is contained in:
Peter Huene
2020-02-21 17:43:30 -08:00
parent ae0b4090ce
commit 11dec4d788
4 changed files with 340 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System;
using System.IO;
namespace Wasmtime.Tests
{
internal class TempFile : IDisposable
{
public TempFile()
{
Path = System.IO.Path.GetTempFileName();
}
public void Dispose()
{
if (Path != null)
{
File.Delete(Path);
Path = null;
}
}
public string Path { get; private set; }
}
}