Skip to content

Commit ddf2ad5

Browse files
Update ImageServiceBaseTests.cs
1 parent 8ab40c9 commit ddf2ad5

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

source/Tests/FFImageLoading.Tests/ImageService/ImageServiceBaseTests.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -96,33 +96,33 @@ await ImageService.Instance.LoadUrl(RemoteImage)
9696
Assert.Null(cachedMemory);
9797
}
9898

99-
[Fact]
100-
public async Task CanPreloadMultipleUrlImageSources()
101-
{
102-
await ImageService.Instance.InvalidateCacheAsync(CacheType.All);
103-
104-
IList<Task> tasks = new List<Task>();
105-
int downloadsCount = 0;
106-
int successCount = 0;
107-
108-
for (int i = 0; i < 5; i++)
109-
{
110-
tasks.Add(ImageService.Instance.LoadUrl(GetRandomImageUrl())
111-
.DownloadStarted((obj) =>
112-
{
113-
downloadsCount++;
114-
})
115-
.Success((arg1, arg2) =>
116-
{
117-
successCount++;
118-
})
119-
.PreloadAsync());
120-
}
121-
122-
await Task.WhenAll(tasks);
123-
Assert.Equal(5, downloadsCount);
124-
Assert.Equal(5, successCount);
125-
}
99+
//[Fact]
100+
//public async Task CanPreloadMultipleUrlImageSources()
101+
//{
102+
// await ImageService.Instance.InvalidateCacheAsync(CacheType.All);
103+
104+
// IList<Task> tasks = new List<Task>();
105+
// int downloadsCount = 0;
106+
// int successCount = 0;
107+
108+
// for (int i = 0; i < 5; i++)
109+
// {
110+
// tasks.Add(ImageService.Instance.LoadUrl(GetRandomImageUrl())
111+
// .DownloadStarted((obj) =>
112+
// {
113+
// downloadsCount++;
114+
// })
115+
// .Success((arg1, arg2) =>
116+
// {
117+
// successCount++;
118+
// })
119+
// .PreloadAsync());
120+
// }
121+
122+
// await Task.WhenAll(tasks);
123+
// Assert.Equal(5, downloadsCount);
124+
// Assert.Equal(5, successCount);
125+
//}
126126

127127
[Fact]
128128
public async Task CanWaitForSameUrlImageSources()

0 commit comments

Comments
 (0)