Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Commit eab0fed

Browse files
committed
Added test project.
1 parent 01f5f20 commit eab0fed

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ Temporary Items
4545
# Visual Studio
4646
.vs
4747
*.csproj
48+
*.csproj.user
4849
*.sln
4950
*.dll
5051
*.pdb
5152
obj
5253
bin
5354
project.lock.json
55+
packages
56+
packages.config

Diff for: global.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"projects": [
3+
"src",
4+
"test"
5+
]
6+
}

Diff for: test/Managed.Reflection.Tests/Tests.cs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using Xunit;
3+
using Managed.Reflection;
4+
5+
namespace Tests
6+
{
7+
public class Tests
8+
{
9+
[Fact]
10+
public void Test1()
11+
{
12+
var universe = new Universe();
13+
var typeofTests = universe.Import(typeof(Tests));
14+
Assert.Equal(typeof(Tests).FullName, typeofTests.FullName);
15+
Assert.Equal(typeof(Tests).AssemblyQualifiedName, typeofTests.AssemblyQualifiedName);
16+
}
17+
}
18+
}

Diff for: test/Managed.Reflection.Tests/project.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "1.0.0-*",
3+
"buildOptions": {
4+
"debugType": "portable"
5+
},
6+
"dependencies": {
7+
"System.Runtime.Serialization.Primitives": "4.1.1",
8+
"xunit": "2.1.0",
9+
"dotnet-test-xunit": "1.0.0-rc2-build10015",
10+
"Managed.Reflection": {
11+
"target": "project"
12+
}
13+
},
14+
"testRunner": "xunit",
15+
"frameworks": {
16+
"netcoreapp1.0": {
17+
"dependencies": {
18+
"Microsoft.NETCore.App": {
19+
"type": "platform",
20+
"version": "1.0.0"
21+
}
22+
},
23+
"imports": [
24+
"dotnet5.4",
25+
"portable-net451+win8"
26+
]
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)