Skip to content

Commit 0128c14

Browse files
Merge pull request #94 from Stillpoint-Software/develop
Develop
2 parents 5f46eb0 + 7809404 commit 0128c14

13 files changed

Lines changed: 23 additions & 17 deletions

Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1111
</PackageReference>
1212

13-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.14.0" />
1413
</ItemGroup>
1514

1615
<!-- SourceLink / build hygiene -->

Hyperbee.Expressions.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
2222
.github\workflows\create_release.yml = .github\workflows\create_release.yml
2323
.github\workflows\create_test_report.yml = .github\workflows\create_test_report.yml
2424
.github\workflows\deploy-gh-pages.yml = .github\workflows\deploy-gh-pages.yml
25-
.github\workflows\format.yml = .github\workflows\format.yml
2625
.github\workflows\issue_branch.yml = .github\workflows\issue_branch.yml
2726
.github\workflows\pack_publish.yml = .github\workflows\pack_publish.yml
2827
.github\workflows\run_tests.yml = .github\workflows\run_tests.yml

src/Hyperbee.Expressions.Lab/Hyperbee.Expressions.Lab.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
<PackageReference Include="Hyperbee.Json" Version="3.0.6" />
4848
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
4949
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.8" />
50-
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.8" />
5150
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.8" />
5251
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
52+
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.8" />
5353
<ProjectReference Include="..\Hyperbee.Expressions\Hyperbee.Expressions.csproj" />
5454
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0">
5555
<PrivateAssets>all</PrivateAssets>

test/Hyperbee.Expressions.Benchmark/Hyperbee.Expressions.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ItemGroup>
1212
<PackageReference Include="BenchmarkDotNet" Version="0.15.2" />
1313
<PackageReference Include="DotNext.Metaprogramming" Version="5.23.0" />
14-
<PackageReference Include="FastExpressionCompiler" Version="5.3.0" />
14+
<PackageReference Include="FastExpressionCompiler" Version="5.1.1" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

test/Hyperbee.Expressions.Tests/BlockAsyncBasicTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public async Task BlockAsync_ShouldAwaitMultipleTasks_WithDifferentResults( Comp
121121
[DataRow( CompilerType.Fast )]
122122
[DataRow( CompilerType.System )]
123123
[DataRow( CompilerType.Interpret )]
124+
[ExpectedException( typeof( InvalidOperationException ) )]
124125
public async Task BlockAsync_ShouldThrowException_WithFaultedTask( CompilerType compiler )
125126
{
126127
// Arrange
@@ -132,13 +133,14 @@ public async Task BlockAsync_ShouldThrowException_WithFaultedTask( CompilerType
132133
var compiledLambda = lambda.Compile( compiler );
133134

134135
// Act & Assert
135-
await Assert.ThrowsExactlyAsync<InvalidOperationException>( async () => await compiledLambda() );
136+
await compiledLambda();
136137
}
137138

138139
[TestMethod]
139140
[DataRow( CompilerType.Fast )]
140141
[DataRow( CompilerType.System )]
141142
[DataRow( CompilerType.Interpret )]
143+
[ExpectedException( typeof( TaskCanceledException ) )]
142144
public async Task BlockAsync_ShouldHandleCanceledTask_WithCancellation( CompilerType compiler )
143145
{
144146
// Arrange
@@ -151,7 +153,7 @@ public async Task BlockAsync_ShouldHandleCanceledTask_WithCancellation( Compiler
151153
var compiledLambda = lambda.Compile( compiler );
152154

153155
// Act & Assert
154-
await Assert.ThrowsExactlyAsync<TaskCanceledException>( async () => await compiledLambda() );
156+
await compiledLambda();
155157
}
156158

157159
[TestMethod]

test/Hyperbee.Expressions.Tests/BlockAsyncConditionalTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithConditionalReturningTas
370370
}
371371

372372
[TestMethod]
373+
[ExpectedException( typeof( NullReferenceException ) )]
373374
public async Task AsyncBlock_ShouldThrowException_WithNullTaskInConditional()
374375
{
375376
// Arrange: One of the branches returns a null task, leading to exception
@@ -384,6 +385,6 @@ public async Task AsyncBlock_ShouldThrowException_WithNullTaskInConditional()
384385
var compiledLambda = lambda.Compile();
385386

386387
// Act & Assert
387-
await Assert.ThrowsExactlyAsync<NullReferenceException>( async () => await compiledLambda() );
388+
await compiledLambda();
388389
}
389390
}

test/Hyperbee.Expressions.Tests/BlockAsyncSwitchTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithNestedSwitchesAndAwaits
189189
[DataRow( CompleterType.Deferred, CompilerType.Fast )]
190190
[DataRow( CompleterType.Deferred, CompilerType.System )]
191191
[DataRow( CompleterType.Deferred, CompilerType.Interpret )]
192+
[ExpectedException( typeof( ArgumentException ) )]
192193
public async Task AsyncBlock_ShouldThrowException_WithAwaitInSwitchCaseTestValues( CompleterType completer, CompilerType compiler )
193194
{
194195
// Arrange: Switch case test values cannot contain awaited tasks
@@ -210,7 +211,7 @@ public async Task AsyncBlock_ShouldThrowException_WithAwaitInSwitchCaseTestValue
210211
var compiledLambda = lambda.Compile( compiler );
211212

212213
// Act
213-
await Assert.ThrowsExactlyAsync<ArgumentException>( async () => await compiledLambda() );
214+
await compiledLambda();
214215
}
215216

216217
[TestMethod]

test/Hyperbee.Expressions.Tests/BlockYieldBasicTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void BlockYield_ShouldYieldSuccessfully( CompilerType compiler )
4444
https://github.com/dotnet/runtime/issues/114081
4545
======================================================================
4646
47-
[DataTestMethod]
47+
[TestMethod]
4848
[DataRow( false )]
4949
[DataRow( true )]
5050
public void TryFault_ShouldRunSuccessfully_WithReturnLabel( bool interpret )
@@ -75,7 +75,7 @@ public void TryFault_ShouldRunSuccessfully_WithReturnLabel( bool interpret )
7575
Assert.AreEqual( 1, result );
7676
}
7777
78-
[DataTestMethod]
78+
[TestMethod]
7979
[DataRow( false )]
8080
[DataRow( true )]
8181
public void TryFault_ShouldRunSuccessfully_WithReturnLabel_Workaround( bool interpret )

test/Hyperbee.Expressions.Tests/DebugExpressionTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public void DebugExpression_Should_Not_Invoke_DebugDelegate_When_Condition_Is_Fa
9696
}
9797

9898
[TestMethod]
99+
[ExpectedException( typeof( ArgumentException ) )]
99100
public void DebugExpression_Should_Throw_If_Condition_Is_Not_Boolean()
100101
{
101102
// Arrange
@@ -106,7 +107,7 @@ static void DebugAction( int value )
106107
var invalidCondition = Constant( 42 );
107108

108109
// Act
109-
Assert.ThrowsExactly<ArgumentException>( () => _ = Debug( DebugAction, invalidCondition, Constant( 10 ) ) );
110+
_ = Debug( DebugAction, invalidCondition, Constant( 10 ) );
110111

111112
// Assert: Exception is expected
112113
}

test/Hyperbee.Expressions.Tests/Hyperbee.Expressions.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="FastExpressionCompiler" Version="5.3.0" />
20+
<PackageReference Include="FastExpressionCompiler" Version="5.1.1" />
2121
<PackageReference Include="Hyperbee.Json" Version="3.0.6" />
2222
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.8" />
2323
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
2424
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.8" />
2525
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.8" />
2626
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
27-
<PackageReference Include="MSTest.TestFramework" Version="3.10.1" />
28-
<PackageReference Include="MSTest.TestAdapter" Version="3.10.1" />
27+
<PackageReference Include="MSTest.TestAdapter" Version="3.10.2" />
28+
<PackageReference Include="MSTest.TestFramework" Version="3.10.2" />
2929
</ItemGroup>
3030

3131
<ItemGroup>

0 commit comments

Comments
 (0)