Skip to content

Commit 4ab9e2a

Browse files
committed
Moved test types to single 'TestContracts' static class.
1 parent 8d1d98e commit 4ab9e2a

File tree

8 files changed

+32
-26
lines changed

8 files changed

+32
-26
lines changed

AppCoreNet.Shared.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items ", "Solution
3737
stylecop.json = stylecop.json
3838
Directory.Packages.props = Directory.Packages.props
3939
NuGet.config = NuGet.config
40+
renovate.json = renovate.json
4041
EndProjectSection
4142
EndProject
4243
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppCoreNet.Attributes.Polyfill.CompileTest", "test\AppCoreNet.Attributes.Polyfill.CompileTest\AppCoreNet.Attributes.Polyfill.CompileTest.csproj", "{EE034302-6D40-4B54-B115-0184558855F2}"

test/AppCoreNet.TypeHelpers.Tests/ClosedGenericType.cs

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/AppCoreNet.TypeHelpers.Tests/GenericType.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/AppCoreNet.TypeHelpers.Tests/IGenericInterface.cs

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/AppCoreNet.TypeHelpers.Tests/Reflection/AssemblyExtensionsTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Reflection;
88
using FluentAssertions;
99
using Xunit;
10+
using static AppCoreNet.TestContracts;
1011

1112
namespace AppCoreNet.Reflection;
1213

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Licensed under the MIT license.
2+
// Copyright (c) The AppCore .NET project.
3+
4+
namespace AppCoreNet;
5+
6+
public static class TestContracts
7+
{
8+
public interface IGenericInterface<T1, T2>
9+
{
10+
}
11+
12+
public class GenericType<T1, T2> : IGenericInterface<string, char>
13+
{
14+
public class NestedType
15+
{
16+
}
17+
}
18+
19+
public class ClosedGenericType : GenericType<string, char>
20+
{
21+
}
22+
23+
public class TypeWithNestedType
24+
{
25+
public class NestedType
26+
{
27+
}
28+
}
29+
}

test/AppCoreNet.TypeHelpers.Tests/TypeExtensionsTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Diagnostics.CodeAnalysis;
55
using FluentAssertions;
66
using Xunit;
7+
using static AppCoreNet.TestContracts;
78

89
namespace AppCoreNet;
910

test/AppCoreNet.TypeHelpers.Tests/TypeWithNestedType.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)