Skip to content

Commit

Permalink
fix: Workaround issue #7899
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Jan 25, 2022
1 parent 4a24ac1 commit 5e7baef
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/Uno.UI.RuntimeTests/Tests/UnitTestsTests/Given_UnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void When_Success()
}

[TestClass]
class Give_UnitTest_DynamicData_From_Method
class Give_UnitTest_DynamicData_From_Method : IDisposable
{
static int TestSucces_Count = 0;

Expand All @@ -61,15 +61,12 @@ public static IEnumerable<object[]> GetData()
yield return new object[] { 14, 1, 15 };
}

[TestCleanup]
public void TestCleanup()
{
public void Dispose() =>
Assert.Equals(TestSucces_Count, 3);
}
}

[TestClass]
class Give_UnitTest_DynamicData_From_Property
class Give_UnitTest_DynamicData_From_Property : IDisposable
{
static int TestSucces_Count = 0;

Expand All @@ -92,10 +89,7 @@ public static IEnumerable<object[]> Data
}
}

[TestCleanup]
public void TestCleanup()
{
public void Dispose() =>
Assert.Equals(TestSucces_Count, 3);
}
}
}

0 comments on commit 5e7baef

Please sign in to comment.