Skip to content

Commit

Permalink
WIP breaking code
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Jan 16, 2024
1 parent f880d21 commit 64c28bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using starsky.foundation.platform.Helpers;
using starsky.foundation.platform.Models;
using starsky.foundation.storage.Helpers;
using starskytest.FakeCreateAn;

Expand All @@ -28,18 +28,22 @@ public void GetFileName_ReturnsValidFileName()

[TestMethod]
[ExpectedException(typeof(RegexMatchTimeoutException))]
public void GetFileName_ReturnsFileName_WithMaliciousInput()
public void GetFileName_ReturnsFileName_WithMaliciousInput_UnixOnly()
{
if ( new AppSettings().IsWindows )
{
Assert.Inconclusive("Test is Linux & Mac OS Only");
return;
}

// Act and Assert
var test =
PlainTextFileHelper.StreamToString(
new MemoryStream(CreateAnImage.Bytes.ToArray()));
var test2 =
PlainTextFileHelper.StreamToString(
new MemoryStream(CreateAnImageA6600.Bytes.ToArray()));
PathHelper.GetFileName(test + test2 + test,1);

Console.WriteLine();
PathHelper.GetFileName(test + test2 + test + test,1);
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ await hostFileSystemStorage.WriteStreamAsync(new MemoryStream(item),
var appSettings = new AppSettings
{
ExifToolPath = Path.Combine(outputPath, "exiftool.exe"),
Verbose = true
};

var fakeStorage = new FakeIStorage(new List<string>{"/"},
Expand Down

0 comments on commit 64c28bc

Please sign in to comment.