mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-05-08 11:59:43 -05:00
set WarningsAsErrors = true
This commit is contained in:
@@ -24,11 +24,13 @@ namespace MetaNodes.Tests
|
||||
{
|
||||
if (args == null || args.Length == 0)
|
||||
return;
|
||||
#pragma warning disable IL2026
|
||||
string message = type + " -> " +
|
||||
string.Join(", ", args.Select(x =>
|
||||
x == null ? "null" :
|
||||
x.GetType().IsPrimitive || x is string ? x.ToString() :
|
||||
System.Text.Json.JsonSerializer.Serialize(x)));
|
||||
#pragma warning restore IL2026
|
||||
Messages.Add(message);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,10 +186,12 @@ public class MovieLookupTests
|
||||
|
||||
var md = MovieLookup.GetVideoMetadata(args, movieApi, 414906, @"D:\videos\temp");
|
||||
Assert.IsNotNull(md);
|
||||
#pragma warning disable IL2026
|
||||
string json = System.Text.Json.JsonSerializer.Serialize(md, new System.Text.Json.JsonSerializerOptions
|
||||
{
|
||||
WriteIndented = true
|
||||
});
|
||||
#pragma warning restore IL2026
|
||||
File.WriteAllText(@"D:\videos\metadata.json", json);
|
||||
}
|
||||
[TestMethod]
|
||||
|
||||
Reference in New Issue
Block a user