Skip to content

Commit

Permalink
Fixed naming of projects and solutions and removed netcore seperate n…
Browse files Browse the repository at this point in the history
…amespace #6  #4
  • Loading branch information
OsirisTerje committed Dec 25, 2017
1 parent f71bd31 commit a6f28a0
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NUnit3CoreTestDemo", "NUnit3CoreTestDemo.csproj", "{38F3367C-274D-4B31-9D38-69F949000A61}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSharpCore1TestDemo", "CSharpCore1TestDemo.csproj", "{38F3367C-274D-4B31-9D38-69F949000A61}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NUnit3Core2TestDemo", "NUnit3Core2TestDemo.csproj", "{38F3367C-274D-4B31-9D38-69F949000A61}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSharpCore2TestDemo", "CSharpCore2TestDemo.csproj", "{38F3367C-274D-4B31-9D38-69F949000A61}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
6 changes: 1 addition & 5 deletions src/csharp/AsyncTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;

#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else

namespace NUnitTestDemo
#endif
{
public class AsyncTests
{
Expand Down
14 changes: 3 additions & 11 deletions src/csharp/ExpectedOutcomeAttributes.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;

#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else
using NUnit.Framework;


namespace NUnitTestDemo
#endif
{
public class ExpectPassAttribute : PropertyAttribute
{
Expand Down
9 changes: 2 additions & 7 deletions src/csharp/GenericTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
using System;
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;

#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else

namespace NUnitTestDemo
#endif
{
[TestFixture(typeof(int))]
public class GenericTests<T>
Expand Down
7 changes: 1 addition & 6 deletions src/csharp/InheritedTestTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using NUnit.Framework;
using NUnit.Framework;

#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else
namespace NUnitTestDemo
#endif
{
public abstract class InheritedTestBaseClass
{
Expand Down
10 changes: 2 additions & 8 deletions src/csharp/OneTimeSetUpTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using NUnit.Framework;


#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else
namespace NUnitTestDemo
#endif
{
[TestFixture, ExpectPass]
public class OneTimeSetUpTests
Expand Down
5 changes: 1 addition & 4 deletions src/csharp/ParameterizedTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using System;
using NUnit.Framework;

#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else

namespace NUnitTestDemo
#endif
{
public class ParameterizedTests
{
Expand Down
10 changes: 2 additions & 8 deletions src/csharp/SetUpFixtureTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using NUnit.Framework;


#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo.SetUpFixture
#else
namespace NUnitTestDemo.SetUpFixture
#endif
{
[SetUpFixture]
public class SetUpFixture
Expand Down
5 changes: 1 addition & 4 deletions src/csharp/SimpleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
using NUnit.Framework;


#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else

namespace NUnitTestDemo
#endif
{
public class SimpleTests
{
Expand Down
7 changes: 1 addition & 6 deletions src/csharp/TextOutputTests.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
using NUnit.Framework;
using System.Diagnostics;

#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else

namespace NUnitTestDemo
#endif
{
[ExpectPass]
public class TextOutputTests
Expand Down
12 changes: 3 additions & 9 deletions src/csharp/Theories.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using NUnit.Framework;


#if NETCOREAPP1_1 || NETCOREAPP2_0
namespace NUnitCoreTestDemo
#else
namespace NUnitTestDemo
#endif
{
public class Theories
{
[Datapoints]
int[] data = new int[] { 0, 1, 42 };
int[] data = { 0, 1, 42 };

[Theory, ExpectPass]
public void Theory_AllCasesSucceed(int a, int b)
Expand Down

0 comments on commit a6f28a0

Please sign in to comment.