Removed GetImageBytes

This commit is contained in:
2023-05-09 08:09:20 -07:00
parent 5924860f6c
commit e6a775e67c
6 changed files with 60 additions and 293 deletions

View File

@ -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();
}
}