Skip to content
Merged
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
5 changes: 3 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ jobs:
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
buildPlatform: 'Any CPU'
buildConfiguration: 'Debug'
buildConfiguration: 'Release'
buildConfigurationUnitLauncher: 'Debug'

steps:

Expand Down Expand Up @@ -137,7 +138,7 @@ jobs:
solution: 'nanoFramework.TestFramework.sln'
platform: '$(buildPlatform)'
msbuildArgs: '/p:PublicRelease=true'
configuration: '$(buildConfiguration)'
configuration: '$(buildConfigurationUnitLauncher)'

# - task: VisualStudioTestPlatformInstaller@1
# condition: succeeded()
Expand Down
6 changes: 3 additions & 3 deletions poc/TestOfTestFramework/NFUnitTest.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
<Reference Include="nanoFramework.TestFramework, Version=1.0.25.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.TestFramework.1.0.25\lib\nanoFramework.TestFramework.dll</HintPath>
<Reference Include="nanoFramework.TestFramework, Version=1.0.59.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.TestFramework.1.0.59\lib\nanoFramework.TestFramework.dll</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
<Reference Include="nanoFramework.UnitTestLauncher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.TestFramework.1.0.25\lib\nanoFramework.UnitTestLauncher.exe</HintPath>
<HintPath>..\packages\nanoFramework.TestFramework.1.0.59\lib\nanoFramework.UnitTestLauncher.exe</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
Expand Down
15 changes: 15 additions & 0 deletions poc/TestOfTestFramework/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

using System;
using System.Diagnostics;
using System.Threading;

namespace nanoFramework.TestFramework.Test
{
Expand All @@ -17,6 +18,20 @@ public void TestRaisesException()
{
Debug.WriteLine("Test will raise exception");
Assert.Trows(typeof(Exception), ThrowMe);
Assert.Trows(typeof(ArgumentOutOfRangeException), () =>
{
Debug.WriteLine("To see another way of doing this");
// This should throw an ArgumentException
Thread.Sleep(-2);
});
try
{
Assert.Trows(typeof(Exception), () => { Debug.WriteLine("Nothing will be thrown"); });
}
catch (Exception)
{
Debug.WriteLine("Exception raised, perfect");
}
}

private void ThrowMe()
Expand Down
2 changes: 1 addition & 1 deletion poc/TestOfTestFramework/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="nanoFramework.CoreLibrary" version="1.10.1-preview.9" targetFramework="netnanoframework10" />
<package id="nanoFramework.TestFramework" version="1.0.25" targetFramework="netnanoframework10" developmentDependency="true" />
<package id="nanoFramework.TestFramework" version="1.0.59" targetFramework="netnanoframework10" developmentDependency="true" />
</packages>
497 changes: 274 additions & 223 deletions source/TestAdapter/Executor.cs

Large diffs are not rendered by default.

Loading