From f71919f8f760ded6eeefb0a68fc15076c40a14a8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 2 Dec 2024 11:45:43 -0500 Subject: [PATCH] Add one more boundary test --- BinaryObjectScanner.Test/ExtensionsTests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BinaryObjectScanner.Test/ExtensionsTests.cs b/BinaryObjectScanner.Test/ExtensionsTests.cs index af7136c4..f285822c 100644 --- a/BinaryObjectScanner.Test/ExtensionsTests.cs +++ b/BinaryObjectScanner.Test/ExtensionsTests.cs @@ -24,6 +24,14 @@ namespace BinaryObjectScanner.Test Assert.Equal(-1, actual); } + [Fact] + public void FileSize_Invalid_Invalid() + { + string? filename = "INVALID"; + long actual = filename.FileSize(); + Assert.Equal(-1, actual); + } + #endregion #region IterateWithAction