Removed GetImageBytes
This commit is contained in:
@ -6,7 +6,6 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Adaptation._Tests.Static;
|
||||
|
||||
@ -221,20 +220,4 @@ public class JSON : LoggingUnitTesting, IDisposable
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void Born()
|
||||
{
|
||||
string json = File.ReadAllText("D:/Tmp/Phares/.json");
|
||||
FileHandlers.csv.CSV csv = JsonSerializer.Deserialize<FileHandlers.csv.CSV>(json);
|
||||
if (csv is null)
|
||||
throw new NullReferenceException(nameof(csv));
|
||||
byte[] bytes = FileHandlers.json.ProcessData.GetImageBytes(new(csv));
|
||||
// _ = Image.FromStream(new MemoryStream(bytes));
|
||||
File.WriteAllBytes("D:/Tmp/Phares/.png", bytes);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user