@@ -70,6 +70,43 @@ public InnerVerifier(
7070 }
7171 }
7272
73+ /// <summary>
74+ /// Initialize a new instance of the <see cref="InnerVerifier"/> class for verifying the entire file (not just a specific type)
75+ /// </summary>
76+ /// <remarks>This constructor is used by 3rd party clients</remarks>
77+ // ReSharper disable once UnusedMember.Global
78+ public InnerVerifier ( string sourceFile , VerifySettings settings )
79+ {
80+ Guard . AgainstEmpty ( sourceFile ) ;
81+
82+ this . settings = settings ;
83+ directory = ResolveDirectory ( sourceFile , settings , new ( ) ) ;
84+
85+ counter = Counter . Start (
86+ #if NET6_0_OR_GREATER
87+ settings . namedDates ,
88+ settings . namedTimes ,
89+ #endif
90+ settings . namedDateTimes ,
91+ settings . namedGuids ,
92+ settings . namedDateTimeOffsets
93+ ) ;
94+
95+ IoHelpers . CreateDirectory ( directory ) ;
96+
97+ ValidatePrefix ( settings , directory ) ;
98+
99+ verifiedFiles = new List < string > { Path . Combine ( directory , $ "{ Path . GetFileNameWithoutExtension ( sourceFile ) } .verified.{ FileExtensions . GetExtension ( sourceFile ) } ") } ;
100+
101+ getFileNames = target => new (
102+ target . Extension ,
103+ sourceFile ,
104+ Path . Combine ( directory , $ "{ Path . GetFileNameWithoutExtension ( sourceFile ) } .verified.{ target . Extension } ")
105+ ) ;
106+
107+ getIndexedFileNames = ( _ , _ ) => throw new NotImplementedException ( ) ;
108+ }
109+
73110 void InitForDirectoryConvention ( Namer namer , string typeAndMethod , string parameters )
74111 {
75112 var verifiedPrefix = PrefixForDirectoryConvention ( namer , typeAndMethod , parameters ) ;
0 commit comments