Skip to content

Commit 7e5b81c

Browse files
Merge branch 'NetCoreSupport' of https://github.com/JosephWoodward/TestStack.ConventionTests into NetCoreSupport
2 parents 19366a6 + 846dd48 commit 7e5b81c

16 files changed

+23
-9584
lines changed

ConventionTests.sln

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26114.2
3+
VisualStudioVersion = 15.0.26228.12
54
MinimumVisualStudioVersion = 10.0.40219.1
65
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AF9054EE-FE89-47A4-9156-BE54A837F2F7}"
76
ProjectSection(SolutionItems) = preProject
@@ -11,25 +10,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1110
README.md = README.md
1211
EndProjectSection
1312
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestStack.ConventionTests", "TestStack.ConventionTests\TestStack.ConventionTests.csproj", "{955B0236-089F-434D-BA02-63A1E24C2B7C}"
15-
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestStack.ConventionTests.Tests", "TestStack.ConventionTests.Tests\TestStack.ConventionTests.Tests.csproj", "{FEFF8305-A192-4CEA-A373-6CF2F365A9E5}"
17-
EndProject
1813
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{35B8E1F6-8E97-40A6-91E3-CB765328424F}"
1914
ProjectSection(SolutionItems) = preProject
2015
.nuget\packages.config = .nuget\packages.config
2116
EndProjectSection
2217
EndProject
23-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestAssembly", "TestAssembly\TestAssembly.csproj", "{D5A0D078-C660-4654-8A14-DDC816BEBC54}"
24-
EndProject
2518
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{E971721A-1271-4359-8F76-9FF17C29582B}"
2619
EndProject
27-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestStack.ConventionTests.Autofac", "TestStack.ConventionTests.Autofac\TestStack.ConventionTests.Autofac.csproj", "{A747FD64-5338-4572-879D-A9DEB00EBD56}"
28-
EndProject
29-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp", "Samples\SampleApp\SampleApp.csproj", "{56467A5A-7DD6-45B3-A84C-144A3C5D0C7A}"
30-
EndProject
31-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp.Tests", "Samples\SampleApp.Tests\SampleApp.Tests.csproj", "{8FEF48A8-6FF5-4B65-B84A-6690D735C703}"
32-
EndProject
3320
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{D822A12B-D358-48BC-8158-EB5CC253C858}"
3421
ProjectSection(SolutionItems) = preProject
3522
docs\changelog.md = docs\changelog.md
@@ -39,6 +26,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{D822A12B-D
3926
Docs\symmetric-conventions.md = Docs\symmetric-conventions.md
4027
EndProjectSection
4128
EndProject
29+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestStack.ConventionTests", "TestStack.ConventionTests\TestStack.ConventionTests.csproj", "{955B0236-089F-434D-BA02-63A1E24C2B7C}"
30+
EndProject
31+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestStack.ConventionTests.Tests", "TestStack.ConventionTests.Tests\TestStack.ConventionTests.Tests.csproj", "{FEFF8305-A192-4CEA-A373-6CF2F365A9E5}"
32+
EndProject
33+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestAssembly", "TestAssembly\TestAssembly.csproj", "{D5A0D078-C660-4654-8A14-DDC816BEBC54}"
34+
EndProject
35+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestStack.ConventionTests.Autofac", "TestStack.ConventionTests.Autofac\TestStack.ConventionTests.Autofac.csproj", "{A747FD64-5338-4572-879D-A9DEB00EBD56}"
36+
EndProject
37+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp", "Samples\SampleApp\SampleApp.csproj", "{56467A5A-7DD6-45B3-A84C-144A3C5D0C7A}"
38+
EndProject
39+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp.Tests", "Samples\SampleApp.Tests\SampleApp.Tests.csproj", "{8FEF48A8-6FF5-4B65-B84A-6690D735C703}"
40+
EndProject
4241
Global
4342
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4443
Debug|Any CPU = Debug|Any CPU

TestStack.ConventionTests/Convention.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static IEnumerable<Attribute> GetCustomReporters<TDataSource>()
9191
return typeof(TDataSource).GetTypeInfo().GetCustomAttributes(typeof(ConventionReporterAttribute), false);
9292
#else
9393
var assembly = Assembly.GetCallingAssembly();
94-
return assembly.GetCustomAttributes(typeof(ConventionReporterAttribute), false);
94+
return (IEnumerable<Attribute>)assembly.GetCustomAttributes(typeof(ConventionReporterAttribute), false);
9595
#endif
9696
}
9797
}

TestStack.ConventionTests/ConventionData/TypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static bool IsConcreteClass(this Type t) =>
1515
#if NewReflection
1616
t.GetTypeInfo().IsClass && !t.GetTypeInfo().IsAbstract;
1717
#else
18-
return t.IsClass && !t.IsAbstract;
18+
t.IsClass && !t.IsAbstract;
1919
#endif
2020

2121
public static bool IsEnum(this Type type)

TestStack.ConventionTests/Conventions/ViewModelShouldInheritFromINotifyPropertyChanged.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
namespace TestStack.ConventionTests.Conventions
22
{
33
using System;
4-
using System.ComponentModel;
5-
using System.Linq;
64
using System.Reflection;
75
using TestStack.ConventionTests.ConventionData;
86

@@ -25,12 +23,6 @@ public void Execute(Types data, IConventionResultContext result)
2523
failingData);
2624
}
2725

28-
public string ConventionReason
29-
{
30-
get
31-
{
32-
return "In different scenarios, WPF can hold onto ViewModels if they do not inherit from INotifyPropertyChanged";
33-
}
34-
}
26+
public string ConventionReason => "In different scenarios, WPF can hold onto ViewModels if they do not inherit from INotifyPropertyChanged";
3527
}
3628
}

TestStack.ConventionTests/Internal/TypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static Assembly GetAssembly(this Type type) =>
2323
#if NewReflection
2424
type.GetTypeInfo().Assembly;
2525
#else
26-
type.Assembly
26+
type.Assembly;
2727
#endif
2828

2929
public static Type GetBaseType(this Type type) =>

TestStack.ConventionTests/TestStack.ConventionTests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
1313
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1414
</PropertyGroup>
15-
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
15+
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
1616
<Reference Include="System.Xml.Linq" />
1717
<Reference Include="System" />
18+
<Reference Include="Microsoft.CSharp" />
1819
</ItemGroup>
1920
<ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
2021
<Reference Include="System.Xml.Linq" />
2122
<Reference Include="System" />
2223
<Reference Include="Microsoft.CSharp" />
2324
</ItemGroup>
24-
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
25+
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
2526
<Reference Include="System.Xml.Linq" />
2627
<Reference Include="System" />
27-
<Reference Include="Microsoft.CSharp" />
2828
</ItemGroup>
2929
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' ">
3030
<PackageReference Include="System.Xml.XDocument" Version="4.3.0" />

UpgradeLog.htm

42.8 KB
Binary file not shown.

UpgradeLog2.htm

259 KB
Binary file not shown.

backup/TestStack.ConventionTests.Autofac/TestStack.ConventionTests.Autofac.csproj

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

backup/TestStack.ConventionTests.Autofac/project.json

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

0 commit comments

Comments
 (0)