Skip to content

Instantly share code, notes, and snippets.

Valeriu Caraulean vcaraulean

Block or report user

Report or block vcaraulean

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vcaraulean
vcaraulean / Program.cs
Last active Jul 11, 2016
Benchmarking NLog's TimeSource implementations
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();
@vcaraulean
vcaraulean / NunitEquivalentCollectionTests.cs
Created Sep 12, 2018
Nunit 3.10.1 and NUnit 3.9.0 have different results in asserting this scenario
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;
You can’t perform that action at this time.