Skip to content

Commit

Permalink
Fixed dotnet framework unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv committed May 22, 2024
1 parent 57ec817 commit 8e6394c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Emgu.CV.Test/AutoTestModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ public static void DownloadManager_OnDownloadProgressChanged(long? totalBytesToR
else
Trace.WriteLine(String.Format("{0} of {1} bytes downloaded ({2}%)", bytesReceived, totalBytesToReceive, progressPercentage));
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestWeChatQRCode()
Expand All @@ -90,7 +94,11 @@ public async Task TestWeChatQRCode()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestPedestrianDetector()
Expand All @@ -105,7 +113,11 @@ public async Task TestPedestrianDetector()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestDnnSuperres()
Expand All @@ -120,7 +132,11 @@ public async Task TestDnnSuperres()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestDnnSSDFaceDetect()
Expand All @@ -137,7 +153,11 @@ public async Task TestDnnSSDFaceDetect()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestMACE()
Expand Down
20 changes: 20 additions & 0 deletions Emgu.CV.Test/AutoTestOcr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ namespace Emgu.CV.Test
public class AutoTestOcr
{
#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestOCREngGrayText()
Expand Down Expand Up @@ -97,7 +101,11 @@ public async Task TestOCREngGrayText()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestOCRBgrText()
Expand All @@ -123,7 +131,11 @@ public async Task TestOCRBgrText()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestOCREngBlankPage()
Expand All @@ -148,7 +160,11 @@ public async Task TestOCREngBlankPage()


#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestTesseractUnicodePath()
Expand All @@ -162,7 +178,11 @@ public async Task TestTesseractUnicodePath()
}

#if !TEST_MODELS
#if VS_TEST
[Ignore()]
#else
[Ignore("Ignore from test run by default.")]
#endif
#endif
[Test]
public async Task TestOCREngConstructor()
Expand Down
1 change: 1 addition & 0 deletions Emgu.CV.Test/Emgu.CV.Test.NetFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
<Compile Include="AutoTestSanity.cs" />
<Compile Include="AutoTestUMat.cs" />
<Compile Include="AutoTestVarious.cs" />
<Compile Include="AutoTestModels.cs" />
<Compile Include="Class1.cs" />
<Compile Include="EmguAssert.cs" />
<Compile Include="Face.cs" />
Expand Down

0 comments on commit 8e6394c

Please sign in to comment.