コード例 #1
0
        public void GetFileInfo_Test_txt_Text()
        {
            var fileProvider = new EmbeddedFileProvider(typeof(EmbeddedFileProviderTest).Assembly);
            var file         = fileProvider.GetFileInfoAsync(@"res\textfile1.txt").Result;

            Assert.IsTrue(file.Exists);
            Assert.AreEqual("Resource1", file.ReadAllTextAsync().GetAwaiter().GetResult());
        }