public async Task Loader_should_allow_prepopulate_cache() { var expected1 = "hello"; var expected2 = "hi!"; var loader = new AssetLoader(); loader.Cache("red", Encoding.UTF8.GetBytes(expected1)); loader.Cache("blue", Encoding.UTF8.GetBytes(expected2)); AssertStringAsset(expected1, await loader.LoadAsync("red")); AssertStringAsset(expected2, await loader.LoadAsync("blue")); }