Beispiel #1
0
        public void TestNonAsyncWrapper()
        {
            using var f = new TempFile("stuff");
            var s = new FileAsyncSaver(f.File);

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

            Assert.AreEqual("hello", s.Save("hello").Result);
        }