Skip to content

Commit

Permalink
Add relevant test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapil Borle committed Jun 5, 2017
1 parent 86753fe commit c627165
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/PowerShellEditorServices/Language/AstOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static public IEnumerable<SymbolReference> FindSymbolsInDocument(Ast scriptAst,
/// <summary>
/// Checks if a given ast represents the root node of a *.psd1 file.
/// </summary>
/// <param name="scriptAst">The abstract syntax tree of the given script</param>
/// <param name="ast">The abstract syntax tree of the given script</param>
/// <returns>true if the AST represts a *.psd1 file, otherwise false</returns>
static public bool IsPowerShellDataFileAst(Ast ast)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

namespace Microsoft.PowerShell.EditorServices.Test.Shared.Symbols
{
public class FindSymbolsInPSDFile
{
public static readonly ScriptRegion SourceDetails =
new ScriptRegion
{
File = @"Symbols\PowerShellDataFile.psd1"
};
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

namespace Microsoft.PowerShell.EditorServices.Test.Shared.Symbols
{
public class FindSymbolsInPesterFile
{
public static readonly ScriptRegion SourceDetails =
new ScriptRegion
{
File = @"Symbols\PesterFile.tests.ps1"
};
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Describe "A dummy test" {
Context "When a pester file is given" {
It "Should return it symbols" {

}

It "Should return context symbols" {

}

It "Should return describe symbols" {

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@{
property1 = "value1"
property2 = "value2"
property3 = "value3"
}

0 comments on commit c627165

Please sign in to comment.