Skip to content

Conversation

Jim8y
Copy link
Contributor

@Jim8y Jim8y commented Sep 23, 2025

Summary

  • add Neo.SmartContract.Testing.RuntimeCompilation with runtime project loader, contract artifacts and MSTest base class
  • update examples and docs to consume dynamic contract compilation and remove checked-in NEF/manifests
  • improve compiler helpers (NEP-11 validation, supported standards) and MockExtensions argument coercion; bump neo submodule to ensure Akka dependencies copy local

Testing

  • dotnet test tests/Neo.SmartContract.Testing.UnitTests/Neo.SmartContract.Testing.UnitTests.csproj
  • dotnet test neo-devpack-dotnet.sln (timed out at ~20 min, but partial suites including Analyzer/Testing passed before timeout)

{
var (nef, manifest) = TestCleanup.EnsureArtifactsUpToDateInternal();
TestBaseSetup(nef, manifest);
EnsureContractDeployed();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be moved to base virtual method in ContractProjectTestBase?

public void Test()
public void Main_ReturnsFalse()
{
EnsureContractDeployed();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
EnsureContractDeployed();

public void SayHello_ReturnsExpectedGreeting()
{
Assert.AreEqual(Contract.SayHello, "Hello, World!");
EnsureContractDeployed();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need to be repeated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants