Dispose bitmap to unlock file in test

This commit is contained in:
Malte Rosenbjerg 2020-05-12 22:50:27 +02:00
parent ca89cac2f0
commit a754d57421

View file

@ -462,6 +462,7 @@ public void Video_Snapshot_PersistSnapshot()
Assert.AreEqual(input.PrimaryVideoStream.Width, bitmap.Width); Assert.AreEqual(input.PrimaryVideoStream.Width, bitmap.Width);
Assert.AreEqual(input.PrimaryVideoStream.Height, bitmap.Height); Assert.AreEqual(input.PrimaryVideoStream.Height, bitmap.Height);
Assert.AreEqual(bitmap.RawFormat, ImageFormat.Png); Assert.AreEqual(bitmap.RawFormat, ImageFormat.Png);
bitmap.Dispose();
} }
finally finally
{ {