Skip to content

Commit 4a6e2ff

Browse files
These don't matter much - it's hard to reference webui nowadays
1 parent 47f0b1f commit 4a6e2ff

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

Tests/CSharp/CaseSensitivityTests.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ private void btnOK_Click(object sender, EventArgs e)
3333
3434
public partial class VBIsCaseInsensitive
3535
{
36-
private System.Web.UI.WebControls.Button _btnOk;
36+
private Global.System.Web.UI.WebControls.Button _btnOk;
3737
38-
protected virtual System.Web.UI.WebControls.Button btnOk
38+
protected virtual Global.System.Web.UI.WebControls.Button btnOk
3939
{
4040
[MethodImpl(MethodImplOptions.Synchronized)]
4141
get
@@ -58,7 +58,14 @@ protected virtual System.Web.UI.WebControls.Button btnOk
5858
}
5959
}
6060
}
61-
}");
61+
}
62+
3 source compilation errors:
63+
BC30002: Type 'System.Web.UI.Page' is not defined.
64+
BC30002: Type 'Global.System.Web.UI.WebControls.Button' is not defined.
65+
BC30590: Event 'Click' cannot be found.
66+
2 target compilation errors:
67+
CS0234: The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
68+
CS0246: The type or namespace name 'Global.System.Web.UI.WebControls.Button' could not be found (are you missing a using directive or an assembly reference?)");
6269
}
6370

6471
[Fact]

Tests/CSharp/TypeCastTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ internal partial class CharTestClass
13551355
{
13561356
private string[] QuoteSplit(string text)
13571357
{
1358-
return text.Split('""');
1358+
return text.Split(""\"""");
13591359
}
13601360
}");
13611361
}
@@ -1535,8 +1535,7 @@ End Function
15351535
Private Shared Function GenericFunctionWithCastThatExistsInCsharp(Of T As {TestGenericCast})() As T
15361536
Return New TestGenericCast
15371537
End Function
1538-
End Class", @"using Microsoft.VisualBasic.CompilerServices; // Install-Package Microsoft.VisualBasic
1539-
1538+
End Class", @"
15401539
internal partial class TestGenericCast
15411540
{
15421541
private static T GenericFunctionWithCTypeCast<T>()

0 commit comments

Comments
 (0)