mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-05-03 20:59:07 -05:00
fixing issue with videocrop being saved in parameters and not variables
This commit is contained in:
@@ -30,18 +30,19 @@ namespace VideoNodes.Tests
|
||||
|
||||
int output = node.Execute(args);
|
||||
|
||||
string crop = args.Parameters[DetectBlackBars.CROP_KEY] as string;
|
||||
string crop = args.Variables[DetectBlackBars.CROP_KEY] as string;
|
||||
Assert.IsFalse(string.IsNullOrWhiteSpace(crop));
|
||||
|
||||
Assert.AreEqual(1, output);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DetectBlackBars_Test_02()
|
||||
{
|
||||
var crop = DetectBlackBars.TestAboveThreshold(1920, 1080, 1920, 1072, 20);
|
||||
Assert.IsFalse(crop.crop);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user