Valeriu Caraulean vcaraulean
- Geneva, Switzerland
- Sign in to view email
- http://caraulean.com
View Program.cs
// Required nuget packages: | |
// - NLog | |
// - BenchmarkDotNet | |
namespace BenchmarkNlogTimeSources | |
{ | |
public class TimeSourceBenchmark | |
{ | |
private readonly TimeSource _fastLocalTimeSource = new FastLocalTimeSource(); | |
private readonly TimeSource _fastUtcTimeSource = new FastUtcTimeSource(); | |
private readonly TimeSource _accurateLocalTimeSource = new AccurateLocalTimeSource(); |
View NunitEquivalentCollectionTests.cs
[Test] | |
public void EquivalentCollection() | |
{ | |
var c1 = new[] { 1, 2, 3 }; | |
var c2 = new[] { 1, 2, 3 }; | |
Assert.That(c1, Is.EquivalentTo(c2).Using<int, int>((first, second) => | |
{ | |
Assert.That(first, Is.EqualTo(second)); | |
return true; |
OlderNewer