Skip to content

Commit 0928fa9

Browse files
committed
Update PoC test project
***NO_CI***
1 parent 73a239b commit 0928fa9

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

poc/TestOfTestFramework/NFUnitTest.nfproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
<HintPath>..\packages\nanoFramework.CoreLibrary.1.14.2\lib\mscorlib.dll</HintPath>
3636
</Reference>
3737
<Reference Include="nanoFramework.TestFramework">
38-
<HintPath>..\packages\nanoFramework.TestFramework.2.1.60\lib\nanoFramework.TestFramework.dll</HintPath>
38+
<HintPath>..\packages\nanoFramework.TestFramework.2.1.71\lib\nanoFramework.TestFramework.dll</HintPath>
3939
</Reference>
4040
<Reference Include="nanoFramework.UnitTestLauncher">
41-
<HintPath>..\packages\nanoFramework.TestFramework.2.1.60\lib\nanoFramework.UnitTestLauncher.exe</HintPath>
41+
<HintPath>..\packages\nanoFramework.TestFramework.2.1.71\lib\nanoFramework.UnitTestLauncher.exe</HintPath>
4242
</Reference>
4343
</ItemGroup>
4444
<ItemGroup>

poc/TestOfTestFramework/Test.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public void TestRaisesException()
1818
{
1919
Debug.WriteLine("Test will raise exception");
2020

21-
Assert.Throws(typeof(Exception), ThrowMe);
22-
Assert.Throws(typeof(ArgumentOutOfRangeException), () =>
21+
Assert.ThrowsException(typeof(Exception), ThrowMe);
22+
Assert.ThrowsException(typeof(ArgumentOutOfRangeException), () =>
2323
{
2424
Debug.WriteLine("To see another way of doing this");
2525
// This should throw an ArgumentException
@@ -28,7 +28,7 @@ public void TestRaisesException()
2828

2929
try
3030
{
31-
Assert.Throws(typeof(Exception), () => { Debug.WriteLine("Nothing will be thrown"); });
31+
Assert.ThrowsException(typeof(Exception), () => { Debug.WriteLine("Nothing will be thrown"); });
3232
}
3333
catch (Exception)
3434
{

poc/TestOfTestFramework/nano.runsettings

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
<RunSettings>
33
<!-- Configurations that affect the Test Framework -->
44
<RunConfiguration>
5-
<MaxCpuCount>1</MaxCpuCount>
65
<ResultsDirectory>.\TestResults</ResultsDirectory><!-- Path relative to solution directory -->
76
<TestSessionTimeout>120000</TestSessionTimeout><!-- Milliseconds -->
87
<TargetFrameworkVersion>net48</TargetFrameworkVersion>
98
<TargetPlatform>x64</TargetPlatform>
109
</RunConfiguration>
1110
<nanoFrameworkAdapter>
12-
<Logging>None</Logging>
13-
<IsRealHardware>False</IsRealHardware>
11+
<Logging>None</Logging> <!--Set to the desired level of logging for Unit Test execution. Possible values are: None, Detailed, Verbose, Error. -->
12+
<IsRealHardware>False</IsRealHardware><!--Set to true to run tests on real hardware. -->
13+
<CLRVersion></CLRVersion><!--Specify the nanoCLR version to use. If not specified, the latest available will be used. -->
14+
<PathToLocalCLRInstance></PathToLocalCLRInstance><!--Specify the path to a local nanoCLR instance. If not specified, the default one installed with nanoclr CLR witll be used. -->
1415
</nanoFrameworkAdapter>
1516
</RunSettings>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="nanoFramework.CoreLibrary" version="1.14.2" targetFramework="netnano1.0" />
4-
<package id="nanoFramework.TestFramework" version="2.1.60" targetFramework="netnano1.0" developmentDependency="true" />
4+
<package id="nanoFramework.TestFramework" version="2.1.71" targetFramework="netnano1.0" developmentDependency="true" />
55
</packages>

0 commit comments

Comments
 (0)