Skip to content

Commit 08f0b14

Browse files
committed
Added test to AccentAnalyzer
1 parent 1cfbc32 commit 08f0b14

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

components/AccentAnalyzer/tests/AccentAnalyzer.Tests.projitems

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<SharedGUID>FA8C1D4D-4CEF-490E-A369-0CCCFBAA8909</SharedGUID>
77
</PropertyGroup>
88
<PropertyGroup Label="Configuration">
9-
<Import_RootNamespace>Extensions.AccentExtractorTests</Import_RootNamespace>
9+
<Import_RootNamespace>AccentAnalyzerTests</Import_RootNamespace>
1010
</PropertyGroup>
11+
<ItemGroup>
12+
<Compile Include="$(MSBuildThisFileDirectory)ExampleAccentAnalyzerTestClass.cs" />
13+
</ItemGroup>
1114
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using CommunityToolkit.Tests;
6+
using CommunityToolkit.WinUI.Helpers;
7+
8+
namespace AccentAnalyzerTests;
9+
10+
[TestClass]
11+
public partial class ExampleAccentAnalyzerTestClass : VisualUITestBase
12+
{
13+
// If you don't need access to UI objects directly or async code, use this pattern.
14+
[TestMethod]
15+
public void SimpleSynchronousExampleTest()
16+
{
17+
var assembly = typeof(AccentAnalyzer).Assembly;
18+
var type = assembly.GetType(typeof(AccentAnalyzer).FullName ?? string.Empty);
19+
20+
Assert.IsNotNull(type, "Could not find AccentAnalyzer type.");
21+
Assert.AreEqual(typeof(AccentAnalyzer), type, "Type of AccentAnalyzer does not match expected type.");
22+
}
23+
}

0 commit comments

Comments
 (0)