public void SetFileProperties(IFileProperties properties) { try { _yamlTextWriter = _yamlFactory.CreateYamlTextWriter(_originalFileProperties.OriginalFilePath, _nativeFileProperties.OutputFilePath); } catch (System.IO.DirectoryNotFoundException) { //if we can't find the directory, we read from the embedded base64 in the sdlxliff file _yamlTextWriter = _yamlFactory.CreateYamlTextWriter(_originalFileProperties.DependencyFiles.First().CurrentFilePath, _nativeFileProperties.OutputFilePath); } }
public void SetUp() { _paragraphUnitMock = A.Fake <IParagraphUnit>(); _yamlTextWriter = A.Fake <IYamlTextWriter>(); }