Skip to content

Commit b397287

Browse files
Test tweaks
1 parent 804615e commit b397287

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Tests/CSharp/ExpressionTests/ExpressionTests.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private void TestMethod()
3131
public async Task DateLiteralsAsync()
3232
{
3333
await TestConversionVisualBasicToCSharpAsync(@"Class TestClass
34-
Private Sub TestMethod(ByVal date As Date = #1/1/1900#)
34+
Private Sub TestMethod(Optional ByVal pDate As Date = #1/1/1900#)
3535
Dim rslt = #1/1/1900#
3636
Dim rslt2 = #8/13/2002 12:14 PM#
3737
End Sub
@@ -41,15 +41,12 @@ End Sub
4141
4242
internal partial class TestClass
4343
{
44-
private void TestMethod([Optional, DateTimeConstant(599266080000000000/* #1/1/1900# */)] DateTime date)
44+
private void TestMethod([Optional, DateTimeConstant(599266080000000000/* #1/1/1900# */)] DateTime pDate)
4545
{
4646
var rslt = DateTime.Parse(""1900-01-01"");
4747
var rslt2 = DateTime.Parse(""2002-08-13 12:14:00"");
4848
}
49-
}
50-
2 source compilation errors:
51-
BC30183: Keyword is not valid as an identifier.
52-
BC32024: Default values cannot be supplied for parameters that are not declared 'Optional'.");
49+
}");
5350
}
5451

5552
[Fact]

Tests/CSharp/StatementTests/StatementTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,7 @@ private void TestMethod()
14391439
}
14401440
1 target compilation errors:
14411441
CS0149: Method name expected");
1442+
//BUG: Requires new Action wrapper
14421443
}
14431444

14441445
[Fact]
@@ -1623,6 +1624,7 @@ public static string TimeAgo(string x)
16231624
}
16241625
1 target compilation errors:
16251626
CS0825: The contextual keyword 'var' may only appear within a local variable declaration or in script code");
1627+
//BUG: Correct textual output, but requires var pattern syntax construct not available before CodeAnalysis 3
16261628
}
16271629

16281630
[Fact]

0 commit comments

Comments
 (0)