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 77using System ;
88using System . Collections ;
99using System . Diagnostics . CodeAnalysis ;
10+ using System . Runtime . CompilerServices ;
1011using TestFrameworkShared ;
1112
1213namespace nanoFramework . TestFramework
@@ -54,9 +55,7 @@ public static void SkipTest(string message = "")
5455 /// <param name="condition">The condition the test expects to be true.</param>
5556 /// <param name="message">The message to include in the exception when condition is false. The message is shown in test results.</param>
5657 /// <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 = "" )
6059 {
6160 if ( ! condition )
6261 {
@@ -83,9 +82,7 @@ public static void True(
8382 /// <param name="condition">The condition the test expects to be false.</param>
8483 /// <param name="message">The message to include in the exception when condition is true. The message is shown in test results.</param>
8584 /// <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 = "" )
8986 {
9087 if ( condition )
9188 {
Original file line number Diff line number Diff line change 1818 <TargetFrameworkVersion >v1.0</TargetFrameworkVersion >
1919 <RestorePackagesWithLockFile >true</RestorePackagesWithLockFile >
2020 <RestoreLockedMode Condition =" '$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'" >true</RestoreLockedMode >
21+ <LangVersion >default</LangVersion >
2122 </PropertyGroup >
2223 <PropertyGroup >
2324 <SignAssembly >true</SignAssembly >
You can’t perform that action at this time.
0 commit comments