File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 7
7
using System ;
8
8
using System . Collections ;
9
9
using System . Diagnostics . CodeAnalysis ;
10
+ using System . Runtime . CompilerServices ;
10
11
using TestFrameworkShared ;
11
12
12
13
namespace nanoFramework . TestFramework
@@ -54,9 +55,7 @@ public static void SkipTest(string message = "")
54
55
/// <param name="condition">The condition the test expects to be true.</param>
55
56
/// <param name="message">The message to include in the exception when condition is false. The message is shown in test results.</param>
56
57
/// <exception cref="AssertFailedException">Thrown if condition is <see langword="false"/>.</exception>
57
- public static void IsTrue (
58
- bool condition ,
59
- string message = "" )
58
+ public static void IsTrue ( bool condition , [ CallerArgumentExpression ( nameof ( condition ) ) ] string message = "" )
60
59
{
61
60
if ( ! condition )
62
61
{
@@ -83,9 +82,7 @@ public static void True(
83
82
/// <param name="condition">The condition the test expects to be false.</param>
84
83
/// <param name="message">The message to include in the exception when condition is true. The message is shown in test results.</param>
85
84
/// <exception cref="AssertFailedException">Thrown if condition is <see langword="true"/>.</exception>
86
- public static void IsFalse (
87
- bool condition ,
88
- string message = "" )
85
+ public static void IsFalse ( bool condition , [ CallerArgumentExpression ( nameof ( condition ) ) ] string message = "" )
89
86
{
90
87
if ( condition )
91
88
{
Original file line number Diff line number Diff line change 18
18
<TargetFrameworkVersion >v1.0</TargetFrameworkVersion >
19
19
<RestorePackagesWithLockFile >true</RestorePackagesWithLockFile >
20
20
<RestoreLockedMode Condition =" '$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'" >true</RestoreLockedMode >
21
+ <LangVersion >default</LangVersion >
21
22
</PropertyGroup >
22
23
<PropertyGroup >
23
24
<SignAssembly >true</SignAssembly >
You can’t perform that action at this time.
0 commit comments