Esempio n. 1
0
        public InnerVerifier(string sourceFile, Type type, VerifySettings settings, MethodInfo method, IReadOnlyList <object?>?parameters)
        {
            var(projectDirectory, replacements) = AttributeReader.GetAssemblyInfo(type.Assembly);
            settings.instanceScrubbers.Add(replacements);
            fileNameBuilder = new FileNameBuilder(method, type, projectDirectory, sourceFile, parameters, settings);

            this.settings = settings;

            CounterContext.Start();
        }
Esempio n. 2
0
        public InnerVerifier(string sourceFile, Type type, VerifySettings settings, MethodInfo method)
        {
            var(projectDirectory, replacements) = AttributeReader.GetAssemblyInfo(type.Assembly);
            settings.instanceScrubbers.Add(replacements);
            fileNameBuilder = new(method, type, projectDirectory, sourceFile, settings);

            this.settings = settings;

            VerifierSettings.RunBeforeCallbacks();
        }