public void QueriesContextForDataDirectory( ISpecimenContext context, ModKey modKey, MakeModExist sut) { context.MockToReturn <IDataDirectoryProvider>(); sut.MakeExist(modKey, context); context.ShouldHaveCreated <IDataDirectoryProvider>(); }
public void ClassMakeFileExistWithDataDirectory( DirectoryPath directoryPath, IDataDirectoryProvider dataDirectoryProvider, ISpecimenContext context, ModKey modKey, MakeModExist sut) { dataDirectoryProvider.Path.Returns(directoryPath); context.MockToReturn <IDataDirectoryProvider>(dataDirectoryProvider); sut.MakeExist(modKey, context); sut.MakeFileExist .Received(1) .MakeExist( Path.Combine(directoryPath, modKey.FileName), context); }