提交 ba3f3c71 编写于 作者: S Sam Harwell

Fix tests which changed behavior due to .editorconfig

Since tests are run in a subfolder of the solution, they can currently see
the changes we make to .editorconfig.
上级 20ec9b28
......@@ -46,7 +46,8 @@ End Sub
Public Sub PerformClick() Implements System.Windows.Forms.IButtonControl.PerformClick
End Sub
End Class";
End Class
";
private const string FileInLibraryProject2 = @"Public Class Class1
Inherits System.Xml.XmlAttribute
Sub New()
......@@ -56,7 +57,8 @@ Sub foo()
End Sub
Public bar As ClassLibrary3.Class1
End Class";
End Class
";
private const string FileInLibraryProject3 = @"Public Class Class1
Public Enum E
E1
......@@ -69,7 +71,8 @@ Return x
End Function
End Class";
End Class
";
private const string FileInConsoleProject1 = @"
class Program
{
......@@ -87,7 +90,8 @@ static void Main(string[] args)
var a = new ClassLibrary2.Class1();
var d = a.bar;
}
}";
}
";
private const string ClassLibrary1Name = "ClassLibrary1";
private const string ClassLibrary2Name = "ClassLibrary2";
......
......@@ -52,7 +52,8 @@ public void GoToDefinitionOpensProvisionalTabIfDocumentNotAlreadyOpen()
VisualStudio.Editor.SetText(
@"class SomeClass
{
}");
}
");
VisualStudio.SolutionExplorer.CloseFile(project, "FileDef.cs", saveFile: true);
VisualStudio.SolutionExplorer.AddFile(project, "FileConsumer.cs");
VisualStudio.SolutionExplorer.OpenFile(project, "FileConsumer.cs");
......
......@@ -49,7 +49,8 @@ public void GoToImplementationOpensProvisionalTabIfDocumentNotOpen()
VisualStudio.Editor.SetText(
@"class Implementation : IBar
{
}");
}
");
VisualStudio.SolutionExplorer.CloseFile(project, "FileImplementation.cs", saveFile: true);
VisualStudio.SolutionExplorer.AddFile(project, "FileInterface.cs");
VisualStudio.SolutionExplorer.OpenFile(project, "FileInterface.cs");
......
......@@ -46,7 +46,8 @@ End Sub
Public Sub PerformClick() Implements System.Windows.Forms.IButtonControl.PerformClick
End Sub
End Class";
End Class
";
private const string FileInLibraryProject2 = @"Public Class Class1
Inherits System.Xml.XmlAttribute
Sub New()
......@@ -56,7 +57,8 @@ Sub foo()
End Sub
Public bar As ClassLibrary3.Class1
End Class";
End Class
";
private const string FileInLibraryProject3 = @"Public Class Class1
Public Enum E
E1
......@@ -69,7 +71,8 @@ Return x
End Function
End Class";
End Class
";
private const string FileInConsoleProject1 = @"Imports System.Data.XLinq
Module Module1
......@@ -95,7 +98,8 @@ Sub Main()
Dim d = a.bar
End Sub
End Module";
End Module
";
private const string ClassLibrary1Name = "ClassLibrary1";
private const string ClassLibrary2Name = "ClassLibrary2";
......
......@@ -81,7 +81,8 @@ void CommitOnSave()
VisualStudio.Editor.SetText(@"Module Module1
Sub Main()
End Sub
End Module");
End Module
");
VisualStudio.Editor.PlaceCaret("(", charsOffset: 1);
VisualStudio.Editor.SendKeys("x as integer", VirtualKey.Tab);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册