Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: csharp
solution: ./UnitTestProject1/UnitTestProject1.sln
install:
- sudo apt-get install -y gtk-sharp2
- nuget restore ./UnitTestProject1/UnitTestProject1.sln
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
script:
- xbuild /p:Configuration=Release ./UnitTestProject1/UnitTestProject1.sln
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./UnitTestProject1/UnitTestProject1/bin/Release/UnitTestProject1.dll
19 changes: 14 additions & 5 deletions UnitTestProject1/UnitTestProject1/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using NUnit.Framework;
namespace UnitTestProject1
{
[TestClass]

[TestFixture]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
[Test]
public void TestMethodPass()
{ //test branch
Assert.IsTrue(true);

}
[Test]
public void TestMethodFail()
{ //test branch
Assert.IsTrue(true);

}//resolve issue #2

//trying to solve issue 4
}
}
9 changes: 8 additions & 1 deletion UnitTestProject1/UnitTestProject1/UnitTestProject1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<Optimize>true</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand All @@ -35,6 +35,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
<Choose>
Expand All @@ -53,6 +57,9 @@
<Compile Include="UnitTest1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions UnitTestProject1/UnitTestProject1/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="2.6.4" targetFramework="net452" />
</packages>