Skip to content

Mistake in Overview.md, missing example of multiple tests each in its own file #1306

Open
@PeterHuberSg

Description

@PeterHuberSg

https://github.com/dotnet/BenchmarkDotNet/blob/master/docs/articles/overview.md:

The article writes: "The BenchmarkRunner.Run<Md5VsSha256>() call runs your benchmarks … "

However, I cannot find "BenchmarkRunner.Run<Md5VsSha256>()", only "BenchmarkRunner.Run(typeof(Program).Assembly)".

But my real problem is this: In the first example you have a Program class with Main() and a Md5VsSha256 class in the same (!) file. What I cannot figure out is how I can have different test classes in different files. I tried to move Md5VsSha256 in its own file in the same project, but BenchmarkRunner did not find it. I miss in your introduction an explanation how one can have different tests in different files.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions