Skip to content

Commit

Permalink
Initial update to 0.4.0-preview1 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier authored Sep 10, 2024
1 parent 25c1e36 commit 48f77fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/Interop.Tests/Interop.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<!-- Missing XML comment for publicly visible type or member. -->
<NoWarn>CS1591</NoWarn>
<IceRpcBuildTelemetry>false</IceRpcBuildTelemetry>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/Interop.Tests/Slice/ExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Ice_exception_to_slice_exception_with_slicing()
[Test]
public void Slice_exception_to_ice_exception_with_slicing()
{
var batteryException = new BatteryException("bt123", 5.4f);
var batteryException = new BatteryExceptionTwin("bt123", 5.4f);

EngineException? exception = Assert.ThrowsAsync<EngineException>(
async () => await SliceToIceAsync(batteryException));
Expand Down
2 changes: 2 additions & 0 deletions tests/Interop.Tests/Slice/ExceptionTests.slice
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ exception CylinderException : EngineException {
}

// Only defined in .slice file.
// Use Twin suffix otherwise Ice will find and instantiate the Slice-generated class.
[cs::identifier("BatteryExceptionTwin")]
exception BatteryException : EngineException {
voltage: float32
}
Expand Down

0 comments on commit 48f77fe

Please sign in to comment.