Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some tests abort on Windows #572

Merged
merged 1 commit into from
May 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void Ctor_ShouldInstantiateImageFrame_When_CalledWithPixelData()
}
}

[Test]
[Test, SignalAbort]
public void Ctor_ShouldThrowMediaPipeException_When_CalledWithInvalidArgument()
{
#pragma warning disable IDE0058
Expand Down Expand Up @@ -145,7 +145,7 @@ public void SetAlignmentPaddingAreas_ShouldNotThrow()
#endregion

#region CopyToBuffer
[Test]
[Test, SignalAbort]
public void CopyToByteBuffer_ShouldThrowException_When_BufferDepthIsWrong()
{
using (var imageFrame = new ImageFrame(ImageFormat.Types.Format.Gray16, 10, 10))
Expand All @@ -170,7 +170,7 @@ public void CopyToByteBuffer_ShouldReturnByteArray_When_BufferSizeIsLargeEnough(
}
}

[Test]
[Test, SignalAbort]
public void CopyToByteBuffer_ShouldThrowException_When_BufferSizeIsTooSmall()
{
using (var imageFrame = new ImageFrame(ImageFormat.Types.Format.Gray8, 10, 10))
Expand All @@ -181,7 +181,7 @@ public void CopyToByteBuffer_ShouldThrowException_When_BufferSizeIsTooSmall()
}
}

[Test]
[Test, SignalAbort]
public void CopyToUshortBuffer_ShouldThrowException_When_BufferDepthIsWrong()
{
using (var imageFrame = new ImageFrame(ImageFormat.Types.Format.Gray8, 10, 10))
Expand All @@ -206,7 +206,7 @@ public void CopyToUshortBuffer_ShouldReturnUshortArray_When_BufferSizeIsLargeEno
}
}

[Test]
[Test, SignalAbort]
public void CopyToUshortBuffer_ShouldThrowException_When_BufferSizeIsTooSmall()
{
using (var imageFrame = new ImageFrame(ImageFormat.Types.Format.Gray16, 10, 10))
Expand All @@ -217,7 +217,7 @@ public void CopyToUshortBuffer_ShouldThrowException_When_BufferSizeIsTooSmall()
}
}

[Test]
[Test, SignalAbort]
public void CopyToFloatBuffer_ShouldThrowException_When_BufferDepthIsWrong()
{
using (var imageFrame = new ImageFrame(ImageFormat.Types.Format.Gray8, 10, 10))
Expand All @@ -242,7 +242,7 @@ public void CopyToFloatBuffer_ShouldReturnFloatArray_When_BufferSizeIsLargeEnoug
}
}

[Test]
[Test, SignalAbort]
public void CopyToFloatBuffer_ShouldThrowException_When_BufferSizeIsTooSmall()
{
using (var imageFrame = new ImageFrame(ImageFormat.Types.Format.Vec32F1, 10, 10))
Expand Down