Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from keiji/360/SendLogPage-fixtest
Browse files Browse the repository at this point in the history
Fix test.
  • Loading branch information
Murayu0225 authored Sep 11, 2021
2 parents a4cb5a5 + 9c2eb94 commit 3d926fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,17 @@ await UserDialogs.Instance.AlertAsync(
var logUploadingFileName = logFileService.LogUploadingFileName(LogId);
var path = Path.Combine(publicPath, logUploadingFileName);
await Share.RequestAsync(new ShareFileRequest
try
{
await Share.RequestAsync(new ShareFileRequest
{
File = new ShareFile(path)
});
}
catch (NotImplementedInReferenceAssemblyException exception)
{
File = new ShareFile(path)
});
loggerService.Exception("NotImplementedInReferenceAssemblyException", exception);
}
}
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public void OnClickConfirmLogCommandTests_Success()
mockLogFileService.Setup(x => x.CreateLogUploadingFileToTmpPath(testZipFileName)).Returns(true);
mockLogFileService.Setup(x => x.CopyLogUploadingFileToPublicPath(testZipFileName)).Returns(true);

mockLogPathService.Setup(x => x.LogUploadingPublicPath).Returns("dummy_log_uploading_public_path");

var unitUnderTest = CreateViewModel();
unitUnderTest.Initialize(new NavigationParameters());

Expand Down

0 comments on commit 3d926fe

Please sign in to comment.