Skip to content

Commit c627165

Browse files
author
Kapil Borle
committed
Add relevant test files
1 parent 86753fe commit c627165

File tree

5 files changed

+55
-1
lines changed

5 files changed

+55
-1
lines changed

src/PowerShellEditorServices/Language/AstOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static public IEnumerable<SymbolReference> FindSymbolsInDocument(Ast scriptAst,
262262
/// <summary>
263263
/// Checks if a given ast represents the root node of a *.psd1 file.
264264
/// </summary>
265-
/// <param name="scriptAst">The abstract syntax tree of the given script</param>
265+
/// <param name="ast">The abstract syntax tree of the given script</param>
266266
/// <returns>true if the AST represts a *.psd1 file, otherwise false</returns>
267267
static public bool IsPowerShellDataFileAst(Ast ast)
268268
{
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// Copyright (c) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//
5+
6+
namespace Microsoft.PowerShell.EditorServices.Test.Shared.Symbols
7+
{
8+
public class FindSymbolsInPSDFile
9+
{
10+
public static readonly ScriptRegion SourceDetails =
11+
new ScriptRegion
12+
{
13+
File = @"Symbols\PowerShellDataFile.psd1"
14+
};
15+
}
16+
}
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// Copyright (c) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//
5+
6+
namespace Microsoft.PowerShell.EditorServices.Test.Shared.Symbols
7+
{
8+
public class FindSymbolsInPesterFile
9+
{
10+
public static readonly ScriptRegion SourceDetails =
11+
new ScriptRegion
12+
{
13+
File = @"Symbols\PesterFile.tests.ps1"
14+
};
15+
}
16+
}
17+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Describe "A dummy test" {
2+
Context "When a pester file is given" {
3+
It "Should return it symbols" {
4+
5+
}
6+
7+
It "Should return context symbols" {
8+
9+
}
10+
11+
It "Should return describe symbols" {
12+
13+
}
14+
}
15+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@{
2+
property1 = "value1"
3+
property2 = "value2"
4+
property3 = "value3"
5+
}

0 commit comments

Comments
 (0)