Skip to content

Commit

Permalink
try see output
Browse files Browse the repository at this point in the history
  • Loading branch information
schwartz-concordium committed Jan 26, 2024
1 parent 8e2df14 commit e34789e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/UnitTests/Interop/InteropBindingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
using FluentAssertions;
using VerifyXunit;
using Xunit;
using Xunit.Abstractions;

namespace Concordium.Sdk.Tests.UnitTests.Interop;

[UsesVerify]
public class InteropBindingTests
{
private readonly ITestOutputHelper _outputHelper;

public InteropBindingTests(ITestOutputHelper outputHelper) => this._outputHelper = outputHelper;

[Fact]
public async Task GivenSchemaVersion_WhenSchemaDisplay_ThenReturnSchema()
{
Expand Down Expand Up @@ -98,6 +103,15 @@ public async Task GivenBadReceiveParam_WhenDisplayReceiveParam_ThenThrowExceptio
var contractIdentifier = new ContractIdentifier(contractName);
var entryPoint = new EntryPoint(entrypoint);

try
{
var receiveContractParameter = InteropBinding.GetReceiveContractParameter(versionedModuleSchema, contractIdentifier, entryPoint, parameter);
}
catch (InteropBindingException e)
{
this._outputHelper.WriteLine($"{e.Result}");
}

// Act
var action = () => InteropBinding.GetReceiveContractParameter(versionedModuleSchema, contractIdentifier, entryPoint, parameter);

Expand Down

0 comments on commit e34789e

Please sign in to comment.