Euler C# Implementation

C#i Cs-Cov C#-lint CodeQL

All problems are solved in .NET 2+.

Organization

All C# files share a common prefix with their problem number. All shared functions are defined in the include folder.

Usage

This folder contains a Makefile with several recipes, most of which are aliases to dotnet commands. This facilitates the root Makefile dispatching tasks to each language, many of which have more complex build or test processes.

test

Alias for dotnet test.

test_auto

Note

WIP

Runs tests in parallel with one less thread than you have CPUs. Alias for dotnet test.

test_%

Note

WIP

Runs tests in parallel with the specified number of threads. Alias for dotnet test.

clean

Alias for dotnet clean, with some degree of fallback if dotnet is not installed.

lint

Alias for dotnet format --verify-no-changes.

Test Infrastructure

class Euler.IEuler
object Answer ()
class EulerTest
Task EulerTest_Problem ()

An Xunit theory that, for each registered solution, will test against the known answer and a one minute time limit.

Library Code

Problems Solved