Skip to content

Commit

Permalink
Add unit tests (#61)
Browse files Browse the repository at this point in the history
* Add unit tests

For #48

* Update Tests/CommunityToolkit.Labs.UnitTests.Uwp/CommunityToolkit.Labs.UnitTests.Uwp.csproj

Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>

* Standardize casing of directory names

* shorten "Labs.WinUI.CanvasLayout.Tests"

to "CanvasLayout.Tests"

* Shorten experiment test project name

* removed duplicated default Windows app assets

* Remove non-essential assets from test projects

* Share Asset files in the test host projects

* test projects to use common/shared asset files

* standardize XAML formatting

* Do not set passive flag if not running xstyler passively

* remove experiment specific sample heads from "All" solution

and remove folder as will only eve have a single item in it.

* remove unneeded experiment head project from WASM solution

* update test related package dependencies

Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
  • Loading branch information
mrlacey and michael-hawker authored Apr 5, 2022
1 parent 82120e9 commit e471c45
Show file tree
Hide file tree
Showing 62 changed files with 1,598 additions and 304 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

# Build All Packages - TODO: Detect experiments
- name: pack CanvasLayout
working-directory: ./Labs/CanvasLayout/src
working-directory: ./Labs/CanvasLayout/Src
run: msbuild -t:pack /p:Configuration=Release /p:DebugType=Portable

# Push Packages to our DevOps Artifacts Feed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Common/Labs.SampleRefs.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<ItemGroup>

<ProjectReference Include="$(RepositoryDirectory)Labs\CanvasLayout\src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj" />
<ProjectReference Include="$(RepositoryDirectory)Labs\CanvasLayout\samples\CanvasLayout.Sample\CanvasLayout.Sample.csproj"/>
<ProjectReference Include="$(RepositoryDirectory)Labs\CanvasLayout\Src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj" />
<ProjectReference Include="$(RepositoryDirectory)Labs\CanvasLayout\Samples\CanvasLayout.Sample\CanvasLayout.Sample.csproj"/>
</ItemGroup>
</Project>
130 changes: 103 additions & 27 deletions Labs/CanvasLayout/CanvasLayout.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,34 @@ VisualStudioVersion = 17.0.31919.166
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommunityToolkit.Labs.WinUI.CanvasLayout", "src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj", "{1C029CC0-BB45-45FF-AD34-086EC4840DB0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CanvasLayout.Uwp", "samples\CanvasLayout.Uwp\CanvasLayout.Uwp.csproj", "{3BAAC2DA-7124-460E-A9A9-13138843CD57}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CanvasLayout.Uwp", "Samples\CanvasLayout.Uwp\CanvasLayout.Uwp.csproj", "{3BAAC2DA-7124-460E-A9A9-13138843CD57}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.Wasm", "samples\CanvasLayout.Wasm\CanvasLayout.Wasm.csproj", "{6DC6B31C-D03C-4E53-A1A5-CAF51227440B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.Wasm", "Samples\CanvasLayout.Wasm\CanvasLayout.Wasm.csproj", "{6DC6B31C-D03C-4E53-A1A5-CAF51227440B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.Sample", "samples\CanvasLayout.Sample\CanvasLayout.Sample.csproj", "{E648080E-263D-4920-9B3D-2F6BF541586C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommunityToolkit.Labs.Core", "..\..\Common\CommunityToolkit.Labs.Core\CommunityToolkit.Labs.Core.csproj", "{21128E83-CA73-49E2-B8DA-552B9CE81A25}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.Sample", "Samples\CanvasLayout.Sample\CanvasLayout.Sample.csproj", "{E648080E-263D-4920-9B3D-2F6BF541586C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Platforms", "Platforms", "{E6AFDCD6-F59A-4EC4-BCA7-1E47A5A15751}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.WinAppSdk", "samples\CanvasLayout.WinAppSdk\CanvasLayout.WinAppSdk.csproj", "{70DF1194-D158-473E-B350-F630231FB328}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.WinAppSdk", "Samples\CanvasLayout.WinAppSdk\CanvasLayout.WinAppSdk.csproj", "{70DF1194-D158-473E-B350-F630231FB328}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{69AFC3EC-DC11-4031-8624-0E9F942D19C3}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CanvasLayout.Tests", "Tests\CanvasLayout.Tests\CanvasLayout.Tests.shproj", "{2C7A065B-9349-4071-AF95-E88F320A09A9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CanvasLayout.UnitTests.WinAppSdk", "Tests\CanvasLayout.UnitTests.WinAppSdk\CanvasLayout.UnitTests.WinAppSdk.csproj", "{DD3E4652-114A-4614-8904-1DBCE62589CC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CanvasLayout.UnitTests.Uwp", "Tests\CanvasLayout.UnitTests.Uwp\CanvasLayout.UnitTests.Uwp.csproj", "{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Labs Dependencies", "Labs Dependencies", "{EC5804D7-C94B-4CF8-8344-132F2A58F88E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommunityToolkit.Labs.Core", "..\..\Common\CommunityToolkit.Labs.Core\CommunityToolkit.Labs.Core.csproj", "{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Tests\CanvasLayout.Tests\CanvasLayout.Tests.projitems*{2c7a065b-9349-4071-af95-e88f320a09a9}*SharedItemsImports = 13
..\..\Common\CommunityToolkit.Labs.Shared\CommunityToolkit.Labs.Shared.projitems*{3baac2da-7124-460e-a9a9-13138843cd57}*SharedItemsImports = 4
Tests\CanvasLayout.Tests\CanvasLayout.Tests.projitems*{dd3e4652-114a-4614-8904-1dbce62589cc}*SharedItemsImports = 5
Tests\CanvasLayout.Tests\CanvasLayout.Tests.projitems*{f17ee40d-cee8-402f-aa43-45a7f87acbf3}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -124,26 +137,6 @@ Global
{E648080E-263D-4920-9B3D-2F6BF541586C}.Release|x64.Build.0 = Release|Any CPU
{E648080E-263D-4920-9B3D-2F6BF541586C}.Release|x86.ActiveCfg = Release|Any CPU
{E648080E-263D-4920-9B3D-2F6BF541586C}.Release|x86.Build.0 = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|Any CPU.Build.0 = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|ARM.ActiveCfg = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|ARM.Build.0 = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|ARM64.Build.0 = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|x64.ActiveCfg = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|x64.Build.0 = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|x86.ActiveCfg = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Debug|x86.Build.0 = Debug|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|Any CPU.ActiveCfg = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|Any CPU.Build.0 = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|ARM.ActiveCfg = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|ARM.Build.0 = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|ARM64.ActiveCfg = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|ARM64.Build.0 = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|x64.ActiveCfg = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|x64.Build.0 = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|x86.ActiveCfg = Release|Any CPU
{21128E83-CA73-49E2-B8DA-552B9CE81A25}.Release|x86.Build.0 = Release|Any CPU
{70DF1194-D158-473E-B350-F630231FB328}.Debug|Any CPU.ActiveCfg = Debug|x64
{70DF1194-D158-473E-B350-F630231FB328}.Debug|Any CPU.Build.0 = Debug|x64
{70DF1194-D158-473E-B350-F630231FB328}.Debug|Any CPU.Deploy.0 = Debug|x64
Expand Down Expand Up @@ -174,15 +167,98 @@ Global
{70DF1194-D158-473E-B350-F630231FB328}.Release|x86.ActiveCfg = Release|x86
{70DF1194-D158-473E-B350-F630231FB328}.Release|x86.Build.0 = Release|x86
{70DF1194-D158-473E-B350-F630231FB328}.Release|x86.Deploy.0 = Release|x86
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|Any CPU.ActiveCfg = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|Any CPU.Build.0 = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|Any CPU.Deploy.0 = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|ARM.ActiveCfg = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|ARM.Build.0 = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|ARM.Deploy.0 = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|ARM64.ActiveCfg = Debug|arm64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|ARM64.Build.0 = Debug|arm64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|ARM64.Deploy.0 = Debug|arm64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|x64.ActiveCfg = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|x64.Build.0 = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|x64.Deploy.0 = Debug|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|x86.ActiveCfg = Debug|x86
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|x86.Build.0 = Debug|x86
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Debug|x86.Deploy.0 = Debug|x86
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|Any CPU.ActiveCfg = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|Any CPU.Build.0 = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|Any CPU.Deploy.0 = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|ARM.ActiveCfg = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|ARM.Build.0 = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|ARM.Deploy.0 = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|ARM64.ActiveCfg = Release|arm64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|ARM64.Build.0 = Release|arm64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|ARM64.Deploy.0 = Release|arm64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|x64.ActiveCfg = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|x64.Build.0 = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|x64.Deploy.0 = Release|x64
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|x86.ActiveCfg = Release|x86
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|x86.Build.0 = Release|x86
{DD3E4652-114A-4614-8904-1DBCE62589CC}.Release|x86.Deploy.0 = Release|x86
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|Any CPU.ActiveCfg = Debug|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|Any CPU.Build.0 = Debug|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|Any CPU.Deploy.0 = Debug|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|ARM.ActiveCfg = Debug|ARM
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|ARM.Build.0 = Debug|ARM
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|ARM.Deploy.0 = Debug|ARM
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|ARM64.ActiveCfg = Debug|ARM64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|ARM64.Build.0 = Debug|ARM64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|ARM64.Deploy.0 = Debug|ARM64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|x64.ActiveCfg = Debug|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|x64.Build.0 = Debug|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|x64.Deploy.0 = Debug|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|x86.ActiveCfg = Debug|x86
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|x86.Build.0 = Debug|x86
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Debug|x86.Deploy.0 = Debug|x86
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|Any CPU.ActiveCfg = Release|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|Any CPU.Build.0 = Release|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|Any CPU.Deploy.0 = Release|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|ARM.ActiveCfg = Release|ARM
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|ARM.Build.0 = Release|ARM
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|ARM.Deploy.0 = Release|ARM
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|ARM64.ActiveCfg = Release|ARM64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|ARM64.Build.0 = Release|ARM64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|ARM64.Deploy.0 = Release|ARM64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|x64.ActiveCfg = Release|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|x64.Build.0 = Release|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|x64.Deploy.0 = Release|x64
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|x86.ActiveCfg = Release|x86
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|x86.Build.0 = Release|x86
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3}.Release|x86.Deploy.0 = Release|x86
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|ARM.ActiveCfg = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|ARM.Build.0 = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|ARM64.Build.0 = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|x64.ActiveCfg = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|x64.Build.0 = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|x86.ActiveCfg = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Debug|x86.Build.0 = Debug|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|Any CPU.Build.0 = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|ARM.ActiveCfg = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|ARM.Build.0 = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|ARM64.ActiveCfg = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|ARM64.Build.0 = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|x64.ActiveCfg = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|x64.Build.0 = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|x86.ActiveCfg = Release|Any CPU
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{3BAAC2DA-7124-460E-A9A9-13138843CD57} = {E6AFDCD6-F59A-4EC4-BCA7-1E47A5A15751}
{6DC6B31C-D03C-4E53-A1A5-CAF51227440B} = {E6AFDCD6-F59A-4EC4-BCA7-1E47A5A15751}
{21128E83-CA73-49E2-B8DA-552B9CE81A25} = {E6AFDCD6-F59A-4EC4-BCA7-1E47A5A15751}
{70DF1194-D158-473E-B350-F630231FB328} = {E6AFDCD6-F59A-4EC4-BCA7-1E47A5A15751}
{2C7A065B-9349-4071-AF95-E88F320A09A9} = {69AFC3EC-DC11-4031-8624-0E9F942D19C3}
{DD3E4652-114A-4614-8904-1DBCE62589CC} = {69AFC3EC-DC11-4031-8624-0E9F942D19C3}
{F17EE40D-CEE8-402F-AA43-45A7F87ACBF3} = {69AFC3EC-DC11-4031-8624-0E9F942D19C3}
{1CF5C62C-BA30-49F9-81DF-94EA8338AA6E} = {EC5804D7-C94B-4CF8-8344-132F2A58F88E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6D11723C-7575-40DF-9BC9-300A09554B5D}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</ItemGroup>
<ItemGroup>

<ProjectReference Include="..\..\src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj">
<ProjectReference Include="..\..\Src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj">
<AdditionalProperties>WinUITarget=$(WinUITarget)</AdditionalProperties>
</ProjectReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj">
<ProjectReference Include="..\..\Src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj">
<Project>{FE19FFF0-6AB6-4FC7-BFDF-B6499153DCD5}</Project>
<Name>CommunityToolkit.Labs.WinUI.CanvasLayout</Name>
</ProjectReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj" />
<ProjectReference Include="..\..\Src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj" />
<ProjectReference Include="..\CanvasLayout.Sample\CanvasLayout.Sample.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<ProjectReference Include="..\CanvasLayout.Sample\CanvasLayout.Sample.csproj" />
<ProjectReference Include="..\..\src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj" />
<ProjectReference Include="..\..\Src\CommunityToolkit.Labs.WinUI.CanvasLayout.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>2c7a065b-9349-4071-af95-e88f320a09a9</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>CanvasLayout.Tests</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)ExampleCanvasLayoutTestClass.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>2c7a065b-9349-4071-af95-e88f320a09a9</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
<PropertyGroup />
<Import Project="CanvasLayout.Tests.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CanvasLayout.Tests
{
[TestClass]
public class ExampleCanvasLayoutTestClass
{
[TestMethod]
public void Just_an_example_test()
{
Assert.AreEqual(1, 1);
}
}
}
Loading

0 comments on commit e471c45

Please sign in to comment.