public void TestNonAsyncWrapper() { using var f = new TempFile("stuff"); var s = new FileAsyncSaver(f.File); Assert.AreEqual("hello", s.ToSynchronous().Save("hello")); }
public void TestTrueAsyncSave() { using var f = new TempFile("stuff"); var s = new FileAsyncSaver(f.File); Assert.AreEqual("hello", s.Save("hello").Result); }