Skip to content

Instantly share code, notes, and snippets.

Alex Povar zvirja

Block or report user

Report or block zvirja

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
zvirja / MyAutoDataAttribute.cs
Last active May 30, 2019
AutoDataAttribute implementation which allows to easily apply test-specific customization
View MyAutoDataAttribute.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using AutoFixture;
using AutoFixture.Xunit2;
using Xunit;
using Xunit.Sdk;
namespace CustomMyDataAttributesDemo
View DiagnosticsSubstitutionContext.cs
public class DiagnosticsSubstitutionContext : ISubstitutionContext
private static IList<IArgumentSpecification> LastDequeuedList;
private static ConcurrentDictionary<IArgumentSpecification, ArgumentInfo> ArgumentInfos { get; } = new ConcurrentDictionary<IArgumentSpecification, ArgumentInfo>();
private class ArgumentInfo
public string CreationStack { get; }
public int DequeueCounter { get; set; }
You can’t perform that action at this time.