public void GetPrePackagingFolderPath_DirectoryExistsIsCalled()
{
// Arrange
bool directoryExistsGotCalled = false;
var applicationInformation = ApplicationInformationProvider.GetApplicationInformation();
var filesystemAccessorMock = new Mock<IFilesystemAccessor>();
filesystemAccessorMock.Setup(f => f.DirectoryExists(applicationInformation.PrePackagingFolder)).Returns(
() =>
{
directoryExistsGotCalled = true;
return true;
});
var prePackagingFolderPathProvider = new PrePackagingFolderPathProvider(applicationInformation, filesystemAccessorMock.Object);
// Act
prePackagingFolderPathProvider.GetPrePackagingFolderPath();
// Assert
Assert.IsTrue(directoryExistsGotCalled);
}