public void SetUp()
 {
     _fileHelperMock    = A.Fake <IFileHelper>();
     _rootTokenMock     = A.Fake <IJToken>();
     _paragraphUnitMock = A.Fake <IParagraphUnit>();
     _sourceValueMock   = A.Fake <IJValue>();
     _targetValueMock   = A.Fake <IJValue>();
 }
 public void SetFileProperties(IFileProperties properties)
 {
     try
     {
         _rootToken = _jsonFactory.GetRootToken(_originalFileProperties.OriginalFilePath);
     }
     catch (System.IO.DirectoryNotFoundException)
     {
         //if we can't find the directory, we read from the embedded base64 in the sdlxliff file
         _rootToken = _jsonFactory.GetRootToken(_originalFileProperties.DependencyFiles.First().CurrentFilePath);
     }
 }
 public void FileComplete()
 {
     _fileHelper.WriteAllText(_nativeFileProperties.OutputFilePath, _rootToken.ToString());
     _rootToken = null;
 }