Skip to content

Commit cb55009

Browse files
authored
Merge pull request #79 from windows-toolkit/shweaver/unit-tests
Adding UnitTests project with example tests for MockProvider
2 parents 035e1b6 + 4f34942 commit cb55009

17 files changed

+775
-1
lines changed
1.4 KB
Loading
7.52 KB
Loading
2.87 KB
Loading
1.61 KB
Loading
1.23 KB
Loading
1.42 KB
Loading
3.13 KB
Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Package
3+
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
4+
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
5+
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
6+
IgnorableNamespaces="uap mp">
7+
8+
<Identity Name="c089351a-4c91-4cb0-afa7-b976ac715456"
9+
Publisher="CN=shweaver"
10+
Version="1.0.0.0" />
11+
12+
<mp:PhoneIdentity PhoneProductId="c089351a-4c91-4cb0-afa7-b976ac715456" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
13+
14+
<Properties>
15+
<DisplayName>UnitTests.UWP</DisplayName>
16+
<PublisherDisplayName>WCT</PublisherDisplayName>
17+
<Logo>Assets\StoreLogo.png</Logo>
18+
</Properties>
19+
20+
<Dependencies>
21+
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
22+
</Dependencies>
23+
24+
<Resources>
25+
<Resource Language="x-generate" />
26+
</Resources>
27+
<Applications>
28+
<Application Id="vstest.executionengine.universal.App"
29+
Executable="$targetnametoken$.exe"
30+
EntryPoint="UnitTests.UWP.App">
31+
<uap:VisualElements
32+
DisplayName="UnitTests.UWP"
33+
Square150x150Logo="Assets\Square150x150Logo.png"
34+
Square44x44Logo="Assets\Square44x44Logo.png"
35+
Description="UnitTests.UWP"
36+
BackgroundColor="transparent">
37+
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
38+
<uap:SplashScreen Image="Assets\SplashScreen.png" />
39+
</uap:VisualElements>
40+
</Application>
41+
</Applications>
42+
<Capabilities>
43+
<Capability Name="internetClientServer" />
44+
<Capability Name="privateNetworkClientServer" />
45+
</Capabilities>
46+
</Package>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 System.Reflection;
6+
using System.Runtime.InteropServices;
7+
8+
// General Information about an assembly is controlled through the following
9+
// set of attributes. Change these attribute values to modify the information
10+
// associated with an assembly.
11+
[assembly: AssemblyTitle("UnitTests")]
12+
[assembly: AssemblyDescription("")]
13+
[assembly: AssemblyConfiguration("")]
14+
[assembly: AssemblyCompany("")]
15+
[assembly: AssemblyProduct("UnitTests")]
16+
[assembly: AssemblyCopyright("Copyright © 2021")]
17+
[assembly: AssemblyTrademark("")]
18+
[assembly: AssemblyCulture("")]
19+
[assembly: AssemblyMetadata("TargetPlatform", "UAP")]
20+
21+
[assembly: ComVisible(false)]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--
2+
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
3+
developers. However, you can modify these parameters to modify the behavior of the .NET Native
4+
optimizer.
5+
6+
Runtime Directives are documented at https://go.microsoft.com/fwlink/?LinkID=391919
7+
8+
To fully enable reflection for App1.MyClass and all of its public/private members
9+
<Type Name="App1.MyClass" Dynamic="Required All"/>
10+
11+
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
12+
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
13+
14+
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
15+
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
16+
-->
17+
18+
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
19+
<Application>
20+
<!--
21+
An Assembly element with Name="*Application*" applies to all assemblies in
22+
the application package. The asterisks are not wildcards.
23+
-->
24+
<Assembly Name="*Application*" Dynamic="Required All" />
25+
<!-- Add your application specific runtime directives here. -->
26+
27+
28+
</Application>
29+
</Directives>

0 commit comments

Comments
 (0)