You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/FunctionalTests/Query/LinqToEntities/StringConcatTests.cs
+4-4
Original file line number
Diff line number
Diff line change
@@ -569,7 +569,7 @@ public void Issue1904_StringConcatMethod_can_handle_constant_values_of_object_ty
569
569
using(vardb=newStringConcatContext())
570
570
{
571
571
varactualSql=db.Entities.Select(
572
-
e =>string.Concat(3,SomeEnum.SomeA,"xyz",e.DateTimeProp,(short)42)).ToString();
572
+
e =>string.Concat(newobject[]{3,SomeEnum.SomeA,"xyz",e.DateTimeProp,(short)42})).ToString();
573
573
574
574
Assert.Equal(@"SELECT
575
575
CAST( 3 AS nvarchar(max)) + N'SomeA' + N'xyz' + CAST( [Extent1].[DateTimeProp] AS nvarchar(max)) + CAST( cast(42 as smallint) AS nvarchar(max)) AS [C1]
@@ -583,7 +583,7 @@ public void Issue2075_StringConcatMethod_can_handle_constant_values_of_string_ty
583
583
using(vardb=newStringConcatContext())
584
584
{
585
585
varactualSql=db.Entities.Select(
586
-
e =>string.Concat("3","SomeEnum.SomeA","xyz",e.StringProp,"abc",e.StringProp)).ToString();
586
+
e =>string.Concat(newstring[]{"3","SomeEnum.SomeA","xyz",e.StringProp,"abc",e.StringProp})).ToString();
587
587
588
588
Assert.Equal(@"SELECT
589
589
N'3' + N'SomeEnum.SomeA' + N'xyz' + CASE WHEN ([Extent1].[StringProp] IS NULL) THEN N'' ELSE [Extent1].[StringProp] END + N'abc' + CASE WHEN ([Extent1].[StringProp] IS NULL) THEN N'' ELSE [Extent1].[StringProp] END AS [C1]
@@ -646,7 +646,7 @@ public void Issue1904_StringConcat_generates_correct_sql()
0 commit comments