Updated tests and project to work #4
This commit is contained in:
Родитель
2257978aa5
Коммит
9f3a998281
|
@ -3,14 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<LagVersion>latest</LagVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -27,8 +20,9 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
|
||||
<PackageReference Include="NUnit" Version="3.7.1" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
|
||||
<PackageReference Include="NUnit" Version="3.9.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -27,14 +27,16 @@ namespace NUnitTestDemo
|
|||
[SetUp]
|
||||
public void CreateList()
|
||||
{
|
||||
this.list = new TList();
|
||||
list = new TList();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CanAddToList()
|
||||
{
|
||||
list.Add(1); list.Add(2); list.Add(3);
|
||||
Assert.AreEqual(3, list.Count);
|
||||
list.Add(1);
|
||||
list.Add(2);
|
||||
list.Add(3);
|
||||
Assert.That(list.Count,Is.EqualTo(3));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
using NUnit.Framework.Internal;
|
||||
using NUnit.Framework.Interfaces;
|
||||
|
||||
#if NETCOREAPP1_1
|
||||
namespace NUnitCoreTestDemo
|
||||
|
@ -123,6 +119,11 @@ namespace NUnitTestDemo
|
|||
{
|
||||
}
|
||||
|
||||
[TestCase(TestName = "{c.m}")]
|
||||
public void TestCaseWithRandomParameterWithFixedNaming([Random(1)] int x)
|
||||
{
|
||||
}
|
||||
|
||||
#if false // Test for issue #144
|
||||
[MyTestCase]
|
||||
public void TestCaseWithBadTestBuilder(string baz)
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
|
||||
#if NETCOREAPP1_1
|
||||
|
|
Загрузка…
Ссылка в новой задаче