fixing issue with videocrop being saved in parameters and not variables

This commit is contained in:
John Andrews
2022-02-17 10:12:20 +13:00
parent ade1f4a540
commit e704b7a2a6
4 changed files with 58 additions and 5 deletions
+3 -2
View File
@@ -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);
}
}
}
}