Skip to content

Commit

Permalink
Use proxy type for GetSliceTypeId
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Nov 7, 2023
1 parent f38880b commit 51355f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Interop.Tests/Slice/IceObjectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task Ice_isA_on_IceRPC_service()
using Ice.Communicator communicator = Ice.Util.initialize();
Ice.ObjectPrx proxy = communicator.CreateObjectPrx("hello", serverAddress);

Assert.That(async () => await proxy.ice_isAAsync(typeof(IGreeter).GetSliceTypeId()), Is.True);
Assert.That(async () => await proxy.ice_isAAsync(typeof(GreeterProxy).GetSliceTypeId()), Is.True);
}

/// <summary>An IceRPC client sends ice_isA to an Ice object.</summary>
Expand All @@ -64,7 +64,7 @@ public async Task Ice_isA_on_Ice_object()
await using var clientConnection = new ClientConnection(adapter.GetFirstServerAddress());
var proxy = new IceObjectProxy(clientConnection, new Uri("ice:/hello"));

Assert.That(async () => await proxy.IceIsAAsync(typeof(IGreeter).GetSliceTypeId()!), Is.True);
Assert.That(async () => await proxy.IceIsAAsync(typeof(GreeterProxy).GetSliceTypeId()!), Is.True);
}

/// <summary>Verifies that ice_ids return the same value with Ice and IceRPC.</summary>
Expand Down

0 comments on commit 51355f1

Please sign in to comment.