diff --git a/CameraUtility.Tests/CheckFilesCommandTests.cs b/CameraUtility.Tests/CheckFilesCommandTests.cs index e9257e8..110be96 100644 --- a/CameraUtility.Tests/CheckFilesCommandTests.cs +++ b/CameraUtility.Tests/CheckFilesCommandTests.cs @@ -72,6 +72,9 @@ public void Check_directory_when_all_files_are_camera_files_but_some_are_missing NewImageFileTags("2010:01:12 13:14:15", "42")), ( $"{sourceDirPath}/IMG_2345.JPEG", + Array.Empty()), + ( + $"{sourceDirPath}/IMG_3456.jpg", Array.Empty()) }; SetupFileSystemStub(fixture, sourceDirPath, sourceFiles.Select(f => f.sourceFile)); @@ -86,9 +89,10 @@ public void Check_directory_when_all_files_are_camera_files_but_some_are_missing result.Should().Be(0); var output = consoleTextWriterMock.ToString(); output.Should().Be( - "Found 2 camera file(s). Missing metadata in 1 file(s).\n" + + "Found 3 camera file(s). Missing metadata in 2 file(s).\n" + "Following files are missing metadata:\n" + - $"{sourceDirPath}/IMG_2345.JPEG\n"); + $"{sourceDirPath}/IMG_2345.JPEG\n" + + $"{sourceDirPath}/IMG_3456.jpg\n"); } [Fact] diff --git a/CameraUtility/CameraFilePath.cs b/CameraUtility/CameraFilePath.cs index 5ee28d1..fbef3f8 100644 --- a/CameraUtility/CameraFilePath.cs +++ b/CameraUtility/CameraFilePath.cs @@ -1,5 +1,8 @@ +using System.Diagnostics; + namespace CameraUtility { + [DebuggerDisplay("{" + nameof(Value) + "}")] public sealed record CameraFilePath(string Value) : TypedOption(Value) { diff --git a/CameraUtility/CameraUtility.csproj b/CameraUtility/CameraUtility.csproj index ba523d3..5c3257e 100755 --- a/CameraUtility/CameraUtility.csproj +++ b/CameraUtility/CameraUtility.csproj @@ -33,7 +33,6 @@ - True diff --git a/CameraUtility/Commands/Check/Output/ConsoleOutput.cs b/CameraUtility/Commands/Check/Output/ConsoleOutput.cs index e7d3db3..72ac187 100644 --- a/CameraUtility/Commands/Check/Output/ConsoleOutput.cs +++ b/CameraUtility/Commands/Check/Output/ConsoleOutput.cs @@ -38,7 +38,7 @@ internal void PrintSummary( } WriteLine( - $" Missing metadata in {cameraFilesCounter - cameraFilesWithoutMetadata.Count} file(s).", + $" Missing metadata in {cameraFilesWithoutMetadata.Count} file(s).", ConsoleColor.Red); WriteLine("Following files are missing metadata:"); foreach (var cameraFile in cameraFilesWithoutMetadata)