Skip to content

Commit 1f9f7f4

Browse files
committed
parameterize test
1 parent b98c579 commit 1f9f7f4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/OVRSharp.Graphics.OpenGL.Tests/CompositorTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using FluentAssertions;
22
using NUnit.Framework;
3+
using Valve.VR;
34

45
namespace OVRSharp.Graphics.OpenGL.Tests
56
{
@@ -16,9 +17,11 @@ public void Setup()
1617
}
1718

1819
[Test]
19-
public void ShouldGetMirrorTextureSuccessfully()
20+
[TestCase(EVREye.Eye_Left)]
21+
[TestCase(EVREye.Eye_Right)]
22+
public void ShouldGetMirrorTextureSuccessfully(EVREye eye)
2023
{
21-
var bitmap = compositor.GetMirrorImage(Valve.VR.EVREye.Eye_Right);
24+
var bitmap = compositor.GetMirrorImage(eye);
2225
bitmap.Height.Should().BeGreaterThan(0);
2326
bitmap.Width.Should().BeGreaterThan(0);
2427
}

0 commit comments

Comments
 (0)