Table of Contents

Create Test Project

Start by creating an xUnit (or the testing framework of your choice) test project for testing your Crosser EdgeNode modules.

Create the Project

dotnet new xunit -n MyOrg.FlowModule.RandomNumberModule.Tests
cd MyOrg.FlowModule.RandomNumberModule.Tests

Add References

Add a reference to your module project:

dotnet add reference ../MyOrg.FlowModule.RandomNumberModule/MyOrg.FlowModule.RandomNumberModule.csproj

Add the TestHelpers package:

dotnet add package Crosser.EdgeNode.Modules.Testing
Tip

Use the version matching your SDK version. Available for SDK 2.5.0+

Project Structure

MyOrg.FlowModule.RandomNumberModule.Tests/
├── MyOrg.FlowModule.RandomNumberModule.Tests.csproj
├── RandomNumberModuleTests.cs
└── Usings.cs

>> Quick Start