@@ -11,14 +11,14 @@ namespace IntegrationTests.AudioNodeTests;
1111
1212 public override async Task < TAudioNode > GetDefaultInstanceAsync ( )
1313 {
14- return await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , null ) ;
14+ return await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , null ) ;
1515 }
1616
1717 [ Test ]
1818 public async Task CreateAsync_WithEmptyOptions_Succeeds ( )
1919 {
2020 // Act
21- await using TAudioNode node = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , new TAudioNodeOptions ( ) ) ;
21+ await using TAudioNode node = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , new TAudioNodeOptions ( ) ) ;
2222
2323 // Assert
2424 _ = node . Should ( ) . BeOfType < TAudioNode > ( ) ;
@@ -28,8 +28,8 @@ public async Task CreateAsync_WithEmptyOptions_Succeeds()
2828 public async Task CreateAsync_WithEmptyOptions_HasSameChannelCountModeAsWhenNoOptionsAreUsed ( )
2929 {
3030 // Arrange
31- await using TAudioNode emptyOptionsNode = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , new TAudioNodeOptions ( ) ) ;
32- await using TAudioNode noOptionsNode = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , null ) ;
31+ await using TAudioNode emptyOptionsNode = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , new TAudioNodeOptions ( ) ) ;
32+ await using TAudioNode noOptionsNode = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , null ) ;
3333
3434 // Act
3535 ChannelCountMode emptyOptionsCountMode = await emptyOptionsNode . GetChannelCountModeAsync ( ) ;
@@ -43,8 +43,8 @@ public async Task CreateAsync_WithEmptyOptions_HasSameChannelCountModeAsWhenNoOp
4343 public async Task CreateAsync_WithEmptyOptions_HasSameChannelInterpretationAsWhenNoOptionsAreUsed ( )
4444 {
4545 // Arrange
46- await using TAudioNode emptyOptionsNode = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , new TAudioNodeOptions ( ) ) ;
47- await using TAudioNode noOptionsNode = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , null ) ;
46+ await using TAudioNode emptyOptionsNode = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , new TAudioNodeOptions ( ) ) ;
47+ await using TAudioNode noOptionsNode = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , null ) ;
4848
4949 // Act
5050 ChannelInterpretation emptyOptionsChannelInterpretation = await emptyOptionsNode . GetChannelInterpretationAsync ( ) ;
@@ -67,7 +67,7 @@ public async Task CreateAsync_WithDifferentChannelCountModes_SetsChannelCountMod
6767 // Act
6868 Func < Task < ChannelCountMode > > action = async ( ) =>
6969 {
70- await using TAudioNode node = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , options ) ;
70+ await using TAudioNode node = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , options ) ;
7171 return await node . GetChannelCountModeAsync ( ) ;
7272 } ;
7373
@@ -95,7 +95,7 @@ public async Task CreateAsync_WithDifferentChannelInterpretations_SetsChannelInt
9595 // Act
9696 Func < Task < ChannelInterpretation > > action = async ( ) =>
9797 {
98- await using TAudioNode node = await CreateAsync ( EvaluationContext . JSRuntime , await GetAudioContextAsync ( ) , options ) ;
98+ await using TAudioNode node = await CreateAsync ( JSRuntime , await GetAudioContextAsync ( ) , options ) ;
9999 return await node . GetChannelInterpretationAsync ( ) ;
100100 } ;
101101
0 commit comments