Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

C# file-based app example

This directory contains a small word-counting app and an xUnit test script. There is no solution or project file.

Run the app with command-line text:

dotnet run --file .\word-counter.cs -- Hello from file scripts

Or pipe text to it:

'one two three'| dotnet run --file .\word-counter.cs

Run the xUnit test script:

dotnet run --file .\word-counter.tests.cs

The two scripts share word-counter.logic.cs through the #:include directive. dotnet test still expects a project or solution, but the test script runs as a standalone xUnit v3 test executable.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages