Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mixed encoding #5415

Merged
merged 1 commit into from
Sep 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -692,35 +692,35 @@ End Namespace</Text>.NormalizedValue
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateType)>
Public Sub TestWithProperties1()
Test(
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|](x:=1,y:=""Hello"")With{.Name�=�""John"",.Age�=�Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|](x:=1,y:=""Hello"")With{.Name�=�""John"",.Age�=�Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Private x As Integer \n Private y As String \n Public Sub New(x As Integer, y As String) \n Me.x = x \n Me.y = y \n End Sub \n Public Property Age As Date \n Public Property Name As String \n End Class"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|](x:=1, y:=""Hello"") With {.Name = ""John"", .Age = Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|](x:=1, y:=""Hello"") With {.Name = ""John"", .Age = Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Private x As Integer \n Private y As String \n Public Sub New(x As Integer, y As String) \n Me.x = x \n Me.y = y \n End Sub \n Public Property Age As Date \n Public Property Name As String \n End Class"),
index:=1)
End Sub

<WorkItem(940003)>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateType)>
Public Sub TestWithProperties2()
Test(
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|](x:=1,y:=""Hello"")With{.Name�=�Nothing,.Age�=�Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|](x:=1,y:=""Hello"")With{.Name�=�Nothing,.Age�=�Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Private x As Integer \n Private y As String \n Public Sub New(x As Integer, y As String) \n Me.x = x \n Me.y = y \n End Sub \n Public Property Age As Date \n Public Property Name As Object \n End Class"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|](x:=1, y:=""Hello"") With {.Name = Nothing, .Age = Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|](x:=1, y:=""Hello"") With {.Name = Nothing, .Age = Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Private x As Integer \n Private y As String \n Public Sub New(x As Integer, y As String) \n Me.x = x \n Me.y = y \n End Sub \n Public Property Age As Date \n Public Property Name As Object \n End Class"),
index:=1)
End Sub

<WorkItem(940003)>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateType)>
Public Sub TestWithProperties3()
Test(
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|](x:=1,y:=""Hello"")With{.Name�=�Foo,.Age�=�Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|](x:=1,y:=""Hello"")With{.Name�=�Foo,.Age�=�Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Private x As Integer \n Private y As String \n Public Sub New(x As Integer, y As String) \n Me.x = x \n Me.y = y \n End Sub \n Public Property Age As Date \n Public Property Name As Object \n End Class"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|](x:=1, y:=""Hello"") With {.Name = Foo, .Age = Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|](x:=1, y:=""Hello"") With {.Name = Foo, .Age = Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Private x As Integer \n Private y As String \n Public Sub New(x As Integer, y As String) \n Me.x = x \n Me.y = y \n End Sub \n Public Property Age As Date \n Public Property Name As Object \n End Class"),
index:=1)
End Sub

<WorkItem(1082031)>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateType)>
Public Sub TestWithProperties4()
Test(
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|]With{.Name�=�""John"",.Age�=�Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n Dim�c�As�New[|Customer|]With{.Name�=�""John"",.Age�=�Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Public Property Age As Date \n Public Property Name As String \n End Class"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|] With {.Name = ""John"", .Age = Date.Today} \n End Sub \n End Module"),
NewLines("Imports System \n Module Program \n Sub Main() \n  Dim c As New [|Customer|] With {.Name = ""John"", .Age = Date.Today} \n End Sub \n End Module \n Friend Class Customer \n Public Property Age As Date \n Public Property Name As String \n End Class"),
index:=1)
End Sub

Expand Down