-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmbeddedResourceEmoteDataLoaderTests.cs
More file actions
28 lines (23 loc) · 1.15 KB
/
EmbeddedResourceEmoteDataLoaderTests.cs
File metadata and controls
28 lines (23 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ---------------------------------------------------------------------------------------------------------------------
// Imports
// ---------------------------------------------------------------------------------------------------------------------
using InfiniBlazor.Emotes;
using InfiniBlazor.Emotes.DataLoaders;
using InfiniBlazorTests.Shared;
namespace InfiniBlazorTests.Core.Emotes;
// ---------------------------------------------------------------------------------------------------------------------
// Code
// ---------------------------------------------------------------------------------------------------------------------
[InfiniBlazorDiDataSource]
public class EmbeddedResourceEmoteDataLoaderTests(IEmotesConfig componentConfig) {
[Test]
public async Task CountShouldReturnExpected() {
// Arrange
var dataLoader = new EmbeddedResourceEmoteDataLoader(componentConfig);
// Act
IEnumerable<Stream> streams = dataLoader.LoadEmoteStreams();
Stream[] streamArray = streams.ToArray();
// Assert
await Assert.That(streamArray).Count().IsGreaterThanOrEqualTo(4);
}
}