├── .editorconfig ├── .gitattributes ├── .gitignore ├── .travis.yml ├── AUTHORS.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Documents ├── FxCop.md └── ImplementationConcepts │ ├── FormatAndOutput.md │ ├── Intrinsics.md │ ├── Providers.md │ ├── Scopes.md │ ├── format-data.png │ └── format_output_framework.png ├── LICENSE-BSD ├── LICENSE-GPL ├── Libraries ├── Irony │ ├── Irony │ │ ├── 010.Irony.2010.csproj │ │ ├── 101.IronySilverlight.2010.csproj │ │ ├── Ast │ │ │ ├── AstBuilder.cs │ │ │ ├── AstContext.cs │ │ │ ├── AstExtensions.cs │ │ │ ├── AstInterfaces.cs │ │ │ └── AstNodeConfig.cs │ │ ├── MS-PubLicense.Rtf │ │ ├── Parsing │ │ │ ├── Data │ │ │ │ ├── Construction │ │ │ │ │ ├── GrammarDataBuilder.cs │ │ │ │ │ ├── LanguageDataBuilder.cs │ │ │ │ │ ├── ParserDataBuilder.cs │ │ │ │ │ ├── ParserDataBuilder_HelperClasses.cs │ │ │ │ │ ├── ScannerDataBuilder.cs │ │ │ │ │ └── _about_parser_construction.txt │ │ │ │ ├── GrammarData.cs │ │ │ │ ├── LanguageData.cs │ │ │ │ ├── ParserData.cs │ │ │ │ └── ScannerData.cs │ │ │ ├── Grammar │ │ │ │ ├── BnfExpression.cs │ │ │ │ ├── BnfTerm.cs │ │ │ │ ├── Grammar.cs │ │ │ │ ├── GrammarEnums.cs │ │ │ │ ├── GrammarError.cs │ │ │ │ ├── GrammarHint.cs │ │ │ │ ├── ICanRunSample.cs │ │ │ │ ├── LanguageAttribute.cs │ │ │ │ ├── NonTerminal.cs │ │ │ │ └── TermReportGroups.cs │ │ │ ├── Parser │ │ │ │ ├── ParseTree.cs │ │ │ │ ├── ParseTreeExtensions.cs │ │ │ │ ├── Parser.cs │ │ │ │ ├── ParserActions │ │ │ │ │ ├── AcceptParserAction.cs │ │ │ │ │ ├── ErrorRecoveryParserAction.cs │ │ │ │ │ ├── ReduceParserActions.cs │ │ │ │ │ ├── ShiftParserAction.cs │ │ │ │ │ └── _ParserAction.cs │ │ │ │ ├── ParserDataPrinter.cs │ │ │ │ ├── ParserStack.cs │ │ │ │ ├── ParserTrace.cs │ │ │ │ ├── ParsingContext.cs │ │ │ │ ├── ParsingEventArgs.cs │ │ │ │ ├── SpecialActionsHints │ │ │ │ │ ├── ConditionalParserAction.cs │ │ │ │ │ ├── CustomActionHintAction.cs │ │ │ │ │ ├── ImpliedPrecedenceHint.cs │ │ │ │ │ ├── PrecedenceBasedParserAction.cs │ │ │ │ │ ├── PrecedenceHint.cs │ │ │ │ │ ├── PreferredActionHint.cs │ │ │ │ │ └── TokenPreviewHint.cs │ │ │ │ └── SyntaxError.cs │ │ │ ├── Scanner │ │ │ │ ├── Scanner.cs │ │ │ │ ├── SourceLocation.cs │ │ │ │ ├── SourceStream.cs │ │ │ │ ├── Token.cs │ │ │ │ ├── TokenEditorInfo.cs │ │ │ │ └── _ISourceStream.cs │ │ │ ├── Terminals │ │ │ │ ├── CommentTerminal.cs │ │ │ │ ├── CompoundTerminalBase.cs │ │ │ │ ├── ConstantTerminal.cs │ │ │ │ ├── CustomTerminal.cs │ │ │ │ ├── DataLiteralBase.cs │ │ │ │ ├── DsvLiteral.cs │ │ │ │ ├── FixedLengthLiteral.cs │ │ │ │ ├── FreeTextLiteral.cs │ │ │ │ ├── IdentifierTerminal.cs │ │ │ │ ├── ImpliedSymbolTerminal.cs │ │ │ │ ├── KeyTerm.cs │ │ │ │ ├── LineContinuationTerminal.cs │ │ │ │ ├── NewLineTerminal.cs │ │ │ │ ├── NumberLiteral.cs │ │ │ │ ├── QuotedValueLiteral.cs │ │ │ │ ├── RegexBasedTerminal.cs │ │ │ │ ├── RegexLiteral.cs │ │ │ │ ├── StringLiteral.cs │ │ │ │ ├── TerminalFactory.cs │ │ │ │ ├── WikiTerminals │ │ │ │ │ ├── WikiBlockTerminal.cs │ │ │ │ │ ├── WikiTagTerminal.cs │ │ │ │ │ ├── WikiTextTerminal.cs │ │ │ │ │ └── _WikiTerminalBase.cs │ │ │ │ └── _Terminal.cs │ │ │ └── TokenFilters │ │ │ │ ├── CodeOutlineFilter.cs │ │ │ │ └── TokenFilter.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── SilverlightOnly │ │ │ └── Stopwatch.cs │ │ ├── Utilities │ │ │ ├── Extensions.cs │ │ │ ├── LogMessage.cs │ │ │ └── StringUtils.cs │ │ └── irony.snk │ └── README.md └── Libraries.Tests │ ├── Libraries.Tests.csproj │ ├── MonoTests.cs │ └── Properties │ └── AssemblyInfo.cs ├── Pash.nunit ├── Pash.proj ├── README.md ├── Source ├── Common.props ├── Microsoft.PowerShell.Commands.Management │ ├── AddContentCommand.cs │ ├── ClearContentCommand.cs │ ├── ClearItemCommand.cs │ ├── ContentCommandBase.cs │ ├── ConvertPathCommand.cs │ ├── CopyItemCommand.cs │ ├── CoreCommandBase.cs │ ├── CoreCommandWithCredentialsBase.cs │ ├── CoreCommandWithFilteredPathsBase.cs │ ├── CoreCommandWithPathsBase.cs │ ├── DriveMatchingCoreCommandBase.cs │ ├── GetChildItemCommand.cs │ ├── GetContentCommand.cs │ ├── GetItemCommand.cs │ ├── GetLocationCommand.cs │ ├── GetPSDriveCommand.cs │ ├── GetPSProviderCommand.cs │ ├── GetProcessCommand.cs │ ├── GetServiceCommand.cs │ ├── ISupportShouldProcess.cs │ ├── InvokeItemCommand.cs │ ├── JoinPathCommand.cs │ ├── Microsoft.Commands.Management.csproj │ ├── MoveItemCommand.cs │ ├── NewItemCommand.cs │ ├── NewPSDriveCommand.cs │ ├── PSManagementPSSnapIn.cs │ ├── PassThroughContentCommandBase.cs │ ├── ProcessBaseCommand.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RemoveItemCommand.cs │ ├── RemovePSDriveCommand.cs │ ├── RenameItemCommand.cs │ ├── ResolvePathCommand.cs │ ├── RestartServiceCommand.cs │ ├── ResumeServiceCommand.cs │ ├── SetContentCommand.cs │ ├── SetItemCommand.cs │ ├── SetLocationCommand.cs │ ├── SplitPathCommand.cs │ ├── StartServiceCommand.cs │ ├── StopProcessCommand.cs │ ├── StopServiceCommand.cs │ ├── SuspendServiceCommand.cs │ ├── TestPathCommand.cs │ ├── TestPathType.cs │ └── WriteContentCommandBase .cs ├── Microsoft.PowerShell.Commands.Utility │ ├── AddMemberCommand.cs │ ├── AddTypeCommand.cs │ ├── ClearVariableCommand.cs │ ├── CollectForEndProcessingCommandBase.cs │ ├── ConsoleColorCmdlet.cs │ ├── ConvertToCsvCommand.cs │ ├── ConvertToHtmlCommand.cs │ ├── ExportCsvCommand.cs │ ├── Format │ │ ├── ErrorFormatEntryData.cs │ │ ├── FormatData.cs │ │ ├── FormatEndData.cs │ │ ├── FormatEntryData.cs │ │ ├── FormatGenerator.cs │ │ ├── FormatManager.cs │ │ ├── FormatObjectProperty.cs │ │ ├── FormatShape.cs │ │ ├── FormatStartData.cs │ │ ├── FormattingState.cs │ │ ├── FromatGeneratorOptions.cs │ │ ├── GroupEndData.cs │ │ ├── GroupStartData.cs │ │ ├── ListFormatEntryData.cs │ │ ├── ListFormatGenerator.cs │ │ ├── SimpleFormatEntryData.cs │ │ ├── TableFormatEntryData.cs │ │ ├── TableFormatGenerator.cs │ │ └── TableFormatGeneratorOptions.cs │ ├── FormatCommandBase.cs │ ├── FormatDefaultCommand.cs │ ├── FormatElement.cs │ ├── FormatListCommand.cs │ ├── FormatShapeCommandBase.cs │ ├── FormatTableCommand.cs │ ├── FormatTableShape.cs │ ├── GenerateCsvCommandBase.cs │ ├── GetDateCommand.cs │ ├── GetHostCommand.cs │ ├── GetMemberCommand.cs │ ├── GetRandomCommand.cs │ ├── GetVariableCommand.cs │ ├── ImportCsvCommand.cs │ ├── Language.cs │ ├── MatchInfo.cs │ ├── MatchInfoContext.cs │ ├── MemberDefinition.cs │ ├── Microsoft.PowerShell.Commands.Utility.csproj │ ├── NewAliasCommand.cs │ ├── NewObjectCommand.cs │ ├── NewVariableCommand.cs │ ├── ObjectCmdletBase.cs │ ├── ObjectCommandBase.cs │ ├── OrderObjectBase.cs │ ├── OutCommandBase.cs │ ├── OutDefaultCommand.cs │ ├── OutFileCommand.cs │ ├── OutNullCommand.cs │ ├── Output │ │ ├── FileOutputWriter.cs │ │ ├── FormatProcessor.cs │ │ ├── HostOutputWriter.cs │ │ ├── ListFormatProcessor.cs │ │ ├── OutputWriter.cs │ │ └── TableFormatProcessor.cs │ ├── OutputAssemblyType.cs │ ├── PSUtilityPSSnapIn.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── PropertyEqualityComparer.cs │ ├── ReadHostCommand.cs │ ├── RemoveVariableCommand.cs │ ├── SelectObjectCommand.cs │ ├── SelectStringCommand.cs │ ├── SetAliasCommand.cs │ ├── SetVariableCommand.cs │ ├── SortObjectCommand.cs │ ├── StartSleepCommand.cs │ ├── StyleInfo.cs │ ├── TeeObjectCommand.cs │ ├── VariableCommandBase.cs │ ├── WhereObjectCommand.cs │ ├── WriteDebugCommand.cs │ ├── WriteErrorCommand.cs │ ├── WriteHostCommand.cs │ ├── WriteOutputCommand.cs │ ├── WriteProgressCommand.cs │ ├── WriteVerboseCommand.cs │ └── WriteWarningCommand.cs ├── Microsoft.PowerShell.Security │ ├── ConvertFromSecureStringCommand.cs │ ├── ConvertFromToSecureStringCommandBase.cs │ ├── ConvertToSecureStringCommand.cs │ ├── GetCredentialCommand.cs │ ├── Microsoft.PowerShell.Security.csproj │ ├── MyClass.cs │ ├── PSSecurityPSSnapIn.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── SecureStringCommandBase.cs ├── NUnitAssertHandlerAddin │ ├── NUnitAssertHandlerAddin.cs │ ├── NUnitAssertHandlerAddin.csproj │ └── Properties │ │ └── AssemblyInfo.cs ├── Pash.sln ├── PashConsole.Tests │ ├── ConsoleStartTests.cs │ └── PashConsole.Tests.csproj ├── PashConsole │ ├── FullHost.cs │ ├── PashConsole.csproj │ ├── Program.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── ReferenceTests │ ├── API │ │ ├── DefaultScriptScopeTests.cs │ │ ├── ErrorRecordTests.cs │ │ ├── LanguagePrimitivesTests.cs │ │ ├── PSObjectTests.cs │ │ ├── TypeConverterTests.cs │ │ └── WildcardPatternTests.cs │ ├── Commands │ │ ├── AddContentTests.cs │ │ ├── AddMemberTests.cs │ │ ├── AddTypeTests.cs │ │ ├── ClearContentTests.cs │ │ ├── ClearVariableTests.cs │ │ ├── ConvertToSecureStringTests.cs │ │ ├── CsvTests.cs │ │ ├── ExportModuleMemberTests.cs │ │ ├── GetCommandTests.cs │ │ ├── GetContentTests.cs │ │ ├── GetMemberTests.cs │ │ ├── GetModuleTests.cs │ │ ├── GetVariableTests.cs │ │ ├── ImportModuleTests.cs │ │ ├── ModuleCommandTestBase.cs │ │ ├── NewObjectTests.cs │ │ ├── NewVariableTests.cs │ │ ├── OutFileTests.cs │ │ ├── RemoveModuleTests.cs │ │ ├── RemoveVariableTests.cs │ │ ├── SelectObjectTests.cs │ │ ├── SelectStringTests.cs │ │ ├── SetContentTests.cs │ │ ├── SetVariableTests.cs │ │ ├── SplitPathTests.cs │ │ └── WhereObjectTests.cs │ ├── GithubIssues │ │ ├── Issue20.cs │ │ └── Issue200.cs │ ├── Integration │ │ ├── CodeGolf.cs │ │ └── RosettaCode.cs │ ├── Language │ │ ├── ArrayTests.cs │ │ ├── CmdletDynamicParameterTests.cs │ │ ├── CmdletParameterTests.cs │ │ ├── DefaultInitialSessionStateTests.cs │ │ ├── ErrorTests.cs │ │ ├── ExitTests.cs │ │ ├── ExpressionTests.cs │ │ ├── FileRedirectionTests.cs │ │ ├── FunctionTests.cs │ │ ├── HashtableTests_10.cs │ │ ├── HereStringTests.cs │ │ ├── IfElseTests.cs │ │ ├── IndexTests.cs │ │ ├── InvocationTests.cs │ │ ├── Loops.cs │ │ ├── ObjectMemberTests.cs │ │ ├── Operators │ │ │ ├── AdditiveOperatorTests_7_7.cs │ │ │ ├── ArithmeticAssignmentTests.cs │ │ │ ├── BitwiseTests.cs │ │ │ ├── Conversion_Tests_6.cs │ │ │ ├── FormatOperatorTests_7_5.cs │ │ │ ├── GeneralConversionTests.cs │ │ │ ├── LogicalOperators_7_10.cs │ │ │ ├── MultiplicativeOperatorTests_7_6.cs │ │ │ ├── PostfixIncrementDecrementTests_7_1_5.cs │ │ │ ├── PrefixIncrementDecrementTests_7_2_6.cs │ │ │ ├── RangeOperatorTests_7_4.cs │ │ │ ├── RelationshipOperators_7_9.cs │ │ │ └── UnaryOperatorTests_7_2.cs │ │ ├── PipelineExecutionTests.cs │ │ ├── ReturnTests.cs │ │ ├── ScopeTests.cs │ │ ├── StringTests.cs │ │ ├── TryCatchFinallyTests.cs │ │ └── VariableTests.cs │ ├── Parsing │ │ └── CommandParsingTests.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Providers │ │ ├── AliasProviderTests.cs │ │ ├── ContainerCmdletProviderTests.cs │ │ ├── ContentCmdletProviderTests.cs │ │ ├── ContentReaderTests.cs │ │ ├── ContentWriterTests.cs │ │ ├── DriveCmdletProviderTests.cs │ │ ├── EnvironmentProviderTests.cs │ │ ├── FileSystemProviderTests.cs │ │ ├── FunctionProviderTests.cs │ │ ├── ItemCmdletProviderTests.cs │ │ ├── NavigationCmdletProviderTests.cs │ │ ├── ProviderLoadingTests.cs │ │ └── VariableProviderTests.cs │ ├── ReferenceHost.cs │ ├── ReferenceTestBase.cs │ ├── ReferenceTestBaseWithTestModule.cs │ ├── ReferenceTestInfo.cs │ ├── ReferenceTests.csproj │ └── TestUtil.cs ├── System.Management.Tests │ ├── AssemblyInfo.cs │ ├── Ast │ │ ├── Ast.Tests.cs │ │ └── ExpectedScriptExtent.cs │ ├── ErrorReportingTests │ │ └── ErrorRecordTests.cs │ ├── ExtensionsTests.cs │ ├── ExtensionsTests │ │ └── StringExtensionsTests.cs │ ├── HostTests │ │ ├── InitialSessionStateTests.cs │ │ ├── SessionStateVariableEntryTests.cs │ │ └── SizeTests.cs │ ├── ParameterTests │ │ ├── BindingTests.cs │ │ ├── CmdLetInfoTests.cs │ │ ├── TestDefaultParameterSetIsAllParameterSetsCommand.cs │ │ ├── TestOutputTypeCommand.cs │ │ └── TestParameterCommand.cs │ ├── Pash │ │ ├── ParserIntrinsics │ │ │ ├── CaseInsensitiveGrammarTests.cs │ │ │ └── ParserTests.cs │ │ └── PartialParsingTests.cs │ └── System.Management.Tests.csproj ├── System.Management │ ├── Automation │ │ ├── ActionPreference.cs │ │ ├── ActionPreferenceStopException.cs │ │ ├── AliasAttribute.cs │ │ ├── AliasInfo.cs │ │ ├── Alignment.cs │ │ ├── AllowEmptyCollectionAttribute.cs │ │ ├── AllowEmptyStringAttribute.cs │ │ ├── AllowNullAttribute.cs │ │ ├── ApplicationFailedException.cs │ │ ├── ApplicationInfo.cs │ │ ├── ArgumentTransformationAttribute.cs │ │ ├── ArgumentTransformationMetadataException.cs │ │ ├── AuthorizationManager.cs │ │ ├── BreakException.cs │ │ ├── ChildItemCmdletProviderIntrinsics.cs │ │ ├── Cmdlet.cs │ │ ├── CmdletAttribute.cs │ │ ├── CmdletInfo.cs │ │ ├── CmdletInvocationException.cs │ │ ├── CmdletProviderIntrinsicsBase.cs │ │ ├── CmdletProviderInvocationException.cs │ │ ├── CmdletProviderManagementIntrinsics.cs │ │ ├── CommandInfo.cs │ │ ├── CommandInvocationIntrinsics.cs │ │ ├── CommandMetadata.cs │ │ ├── CommandNotFoundException.cs │ │ ├── CommandOrigin.cs │ │ ├── CommandParameterInfo.cs │ │ ├── CommandParameterSetInfo.cs │ │ ├── CommandTypes.cs │ │ ├── ConfirmImpact.cs │ │ ├── ContentCmdletProviderIntrinsics.cs │ │ ├── ContinueException.cs │ │ ├── ConvertThroughString.cs │ │ ├── CopyContainers.cs │ │ ├── CredentialAttribute.cs │ │ ├── CustomPSSnapIn.cs │ │ ├── DataAddedEventArgs.cs │ │ ├── DebugRecord.cs │ │ ├── DefaultCommandRuntime.cs │ │ ├── DriveManagementIntrinsics.cs │ │ ├── DriveNotFoundException.cs │ │ ├── EngineIntrinsics.cs │ │ ├── ErrorCategory.cs │ │ ├── ErrorCategoryInfo.cs │ │ ├── ErrorDetails.cs │ │ ├── ErrorRecord.cs │ │ ├── ExitException.cs │ │ ├── ExtendedTypeSystemException.cs │ │ ├── ExternalScriptInfo.cs │ │ ├── FilterInfo.cs │ │ ├── FlowControlException.cs │ │ ├── ForEachObjectCommand.cs │ │ ├── FunctionInfo.cs │ │ ├── GetValueException.cs │ │ ├── GetValueInvocationException.cs │ │ ├── GettingValueExceptionEventArgs.cs │ │ ├── HaltCommandException.cs │ │ ├── Host │ │ │ ├── BufferCell.cs │ │ │ ├── BufferCellType.cs │ │ │ ├── ChoiceDescription.cs │ │ │ ├── ControlKeyStates.cs │ │ │ ├── Coordinates.cs │ │ │ ├── FieldDescription.cs │ │ │ ├── HostException.cs │ │ │ ├── KeyInfo.cs │ │ │ ├── PSHostRawUserInterface.cs │ │ │ ├── PSHostUserInterface.cs │ │ │ ├── ReadKeyOptions.cs │ │ │ ├── Rectangle.cs │ │ │ └── Size.cs │ │ ├── ICommandRuntime.cs │ │ ├── IContainsErrorRecord.cs │ │ ├── IDynamicParameters.cs │ │ ├── IResourceSupplier.cs │ │ ├── IncompleteParseException.cs │ │ ├── InformationalRecord.cs │ │ ├── Internal │ │ │ ├── AutomationNull.cs │ │ │ ├── CmdletMetadataAttribute.cs │ │ │ ├── InternalCommand.cs │ │ │ └── ParsingBaseAttribute.cs │ │ ├── InvocationInfo.cs │ │ ├── ItemCmdletProviderIntrinsics.cs │ │ ├── ItemNotFoundException.cs │ │ ├── Language │ │ │ ├── ArrayExpressionAst.cs │ │ │ ├── ArrayLiteralAst.cs │ │ │ ├── AssignmentStatementAst.cs │ │ │ ├── Ast.cs │ │ │ ├── AstVisitAction.cs │ │ │ ├── AstVisitor.cs │ │ │ ├── AttributeAst.cs │ │ │ ├── AttributeBaseAst.cs │ │ │ ├── AttributedExpressionAst.cs │ │ │ ├── BinaryExpressionAst.cs │ │ │ ├── BreakStatementAst.cs │ │ │ ├── CatchClauseAst.cs │ │ │ ├── CommandAst.cs │ │ │ ├── CommandBaseAst.cs │ │ │ ├── CommandElementAst.cs │ │ │ ├── CommandExpressionAst.cs │ │ │ ├── CommandParameterAst.cs │ │ │ ├── ConstantExpressionAst.cs │ │ │ ├── ContinueStatementAst.cs │ │ │ ├── ConvertExpressionAst.cs │ │ │ ├── DataStatementAst.cs │ │ │ ├── DoUntilStatementAst.cs │ │ │ ├── DoWhileStatementAst.cs │ │ │ ├── ExitStatementAst.cs │ │ │ ├── ExpandableStringExpressionAst.cs │ │ │ ├── ExpressionAst.cs │ │ │ ├── FileRedirectionAst.cs │ │ │ ├── ForEachFlags.cs │ │ │ ├── ForEachStatementAst.cs │ │ │ ├── ForStatementAst.cs │ │ │ ├── FunctionDefinitionAst.cs │ │ │ ├── HashtableAst.cs │ │ │ ├── ICustomAstVisitor.cs │ │ │ ├── IScriptExtent.cs │ │ │ ├── IScriptPosition.cs │ │ │ ├── ITypeName.cs │ │ │ ├── IfStatementAst.cs │ │ │ ├── IndexExpressionAst.cs │ │ │ ├── InvokeMemberExpressionAst.cs │ │ │ ├── LabeledStatementAst.cs │ │ │ ├── LoopStatementAst.cs │ │ │ ├── MemberExpressionAst.cs │ │ │ ├── MergingRedirectionAst.cs │ │ │ ├── NamedAttributeArgumentAst.cs │ │ │ ├── NamedBlockAst.cs │ │ │ ├── ParamBlockAst.cs │ │ │ ├── ParameterAst.cs │ │ │ ├── ParenExpressionAst.cs │ │ │ ├── PipelineAst.cs │ │ │ ├── PipelineBaseAst.cs │ │ │ ├── RedirectionAst.cs │ │ │ ├── RedirectionStream.cs │ │ │ ├── ReturnStatementAst.cs │ │ │ ├── ScriptBlockAst.cs │ │ │ ├── ScriptBlockExpressionAst.cs │ │ │ ├── StatementAst.cs │ │ │ ├── StatementBlockAst.cs │ │ │ ├── StringConstantExpressionAst.cs │ │ │ ├── StringConstantType.cs │ │ │ ├── StringExpressionHelper.cs │ │ │ ├── SubExpressionAst.cs │ │ │ ├── SwitchFlags.cs │ │ │ ├── SwitchStatementAst.cs │ │ │ ├── ThrowStatementAst.cs │ │ │ ├── TokenFlags.cs │ │ │ ├── TokenKind.cs │ │ │ ├── TrapStatementAst.cs │ │ │ ├── TryStatementAst.cs │ │ │ ├── TypeConstraintAst.cs │ │ │ ├── TypeExpressionAst.cs │ │ │ ├── TypeName.cs │ │ │ ├── UnaryExpressionAst.cs │ │ │ ├── UsingExpressionAst.cs │ │ │ ├── VariableExpressionAst.cs │ │ │ └── WhileStatementAst.cs │ │ ├── LanguagePrimitives.cs │ │ ├── LoopFlowException.cs │ │ ├── MetadataException.cs │ │ ├── MethodException.cs │ │ ├── MethodInvocationException.cs │ │ ├── ModuleAccessMode.cs │ │ ├── ModuleType.cs │ │ ├── OutputTypeAttribute.cs │ │ ├── PSAliasProperty.cs │ │ ├── PSArgumentException.cs │ │ ├── PSArgumentNullException.cs │ │ ├── PSArgumentOutOfRangeException.cs │ │ ├── PSCmdlet.cs │ │ ├── PSCommand.cs │ │ ├── PSCredential.cs │ │ ├── PSCredentialTypes.cs │ │ ├── PSCredentialUIOptions.cs │ │ ├── PSCustomObject.cs │ │ ├── PSDataCollection.cs │ │ ├── PSDataCollectionEnumerator.cs │ │ ├── PSDataStreams.cs │ │ ├── PSDriveInfo.cs │ │ ├── PSHost.cs │ │ ├── PSInstaller.cs │ │ ├── PSInvalidCastException.cs │ │ ├── PSInvalidOperationException.cs │ │ ├── PSInvocationSettings.cs │ │ ├── PSInvocationState.cs │ │ ├── PSInvocationStateChangedEventArgs.cs │ │ ├── PSInvocationStateInfo.cs │ │ ├── PSLanguageMode.cs │ │ ├── PSMemberInfo.cs │ │ ├── PSMemberInfoCollection.cs │ │ ├── PSMemberInfoCollectionImplementation.cs │ │ ├── PSMemberSet.cs │ │ ├── PSMemberTypes.cs │ │ ├── PSMethod.cs │ │ ├── PSMethodInfo.cs │ │ ├── PSModuleInfo.cs │ │ ├── PSNoteProperty.cs │ │ ├── PSObject.cs │ │ ├── PSObjectTypeDescriptionProvider.cs │ │ ├── PSParameterizedProperty.cs │ │ ├── PSPrimitiveDictionary.cs │ │ ├── PSProperty.cs │ │ ├── PSPropertyInfo.cs │ │ ├── PSSnapIn.cs │ │ ├── PSSnapInCommandBase.cs │ │ ├── PSSnapInInfo.cs │ │ ├── PSSnapInInstaller.cs │ │ ├── PSTypeConverter.cs │ │ ├── PSTypeName.cs │ │ ├── PSVariable.cs │ │ ├── PSVariableIntrinsics.cs │ │ ├── ParameterAttribute.cs │ │ ├── ParameterBindingException.cs │ │ ├── ParameterMetadata.cs │ │ ├── ParameterSetMetadata.cs │ │ ├── ParentContainsErrorRecordException.cs │ │ ├── ParseException.cs │ │ ├── ParsingMetadataException.cs │ │ ├── PathInfo.cs │ │ ├── PathInfoStack.cs │ │ ├── PathIntrinsics.cs │ │ ├── PipelineClosedException.cs │ │ ├── PipelineStoppedException.cs │ │ ├── PowerShell.cs │ │ ├── ProgressRecord.cs │ │ ├── ProgressRecordType.cs │ │ ├── PropertyCmdletProviderIntrinsics.cs │ │ ├── Provider │ │ │ ├── CmdletProvider.cs │ │ │ ├── CmdletProviderAttribute.cs │ │ │ ├── ContainerCmdletProvider.cs │ │ │ ├── DriveCmdletProvider.cs │ │ │ ├── IContentCmdletProvider.cs │ │ │ ├── IContentReader.cs │ │ │ ├── IContentWriter.cs │ │ │ ├── IDynamicPropertyCmdletProvider.cs │ │ │ ├── IPropertyCmdletProvider.cs │ │ │ ├── ISecurityDescriptorCmdletProvider.cs │ │ │ ├── ItemCmdletProvider.cs │ │ │ ├── NavigationCmdletProvider.cs │ │ │ └── ProviderCapabilities.cs │ │ ├── ProviderInfo.cs │ │ ├── ProviderIntrinsics.cs │ │ ├── ProviderInvocationException.cs │ │ ├── ProviderNameAmbiguousException.cs │ │ ├── ProviderNotFoundException.cs │ │ ├── ProxyCommand.cs │ │ ├── ReadOnlyPSMemberInfoCollection.cs │ │ ├── RemoteStreamOptions.cs │ │ ├── ReturnContainers.cs │ │ ├── RunspacePoolStateInfo.cs │ │ ├── Runspaces │ │ │ ├── AssemblyConfigurationEntry.cs │ │ │ ├── AuthenticationMechanism.cs │ │ │ ├── CmdletConfigurationEntry.cs │ │ │ ├── Command.cs │ │ │ ├── CommandCollection.cs │ │ │ ├── CommandParameter.cs │ │ │ ├── CommandParameterCollection.cs │ │ │ ├── ConstrainedSessionStateEntry.cs │ │ │ ├── FormatConfigurationEntry.cs │ │ │ ├── FormatTable.cs │ │ │ ├── InitialSessionState.cs │ │ │ ├── InitialSessionStateEntry.cs │ │ │ ├── InitialSessionStateEntryCollection.cs │ │ │ ├── InvalidPipelineStateException.cs │ │ │ ├── PSConsoleLoadException.cs │ │ │ ├── PSSnapInException.cs │ │ │ ├── PSThreadOptions.cs │ │ │ ├── Pipeline.cs │ │ │ ├── PipelineReader.cs │ │ │ ├── PipelineResultTypes.cs │ │ │ ├── PipelineState.cs │ │ │ ├── PipelineStateEventArgs.cs │ │ │ ├── PipelineStateInfo.cs │ │ │ ├── PipelineWriter.cs │ │ │ ├── ProviderConfigurationEntry.cs │ │ │ ├── Runspace.cs │ │ │ ├── RunspaceConfiguration.cs │ │ │ ├── RunspaceConfigurationEntry.cs │ │ │ ├── RunspaceConfigurationEntryCollection.cs │ │ │ ├── RunspaceConnectionInfo.cs │ │ │ ├── RunspaceFactory.cs │ │ │ ├── RunspacePool.cs │ │ │ ├── RunspacePoolState.cs │ │ │ ├── RunspacePoolStateChangedEventArgs.cs │ │ │ ├── RunspaceStateEventArgs.cs │ │ │ ├── RunspaceStateInfo.cs │ │ │ ├── ScriptConfigurationEntry.cs │ │ │ ├── SessionStateAliasEntry.cs │ │ │ ├── SessionStateApplicationEntry.cs │ │ │ ├── SessionStateAssemblyEntry.cs │ │ │ ├── SessionStateCmdletEntry.cs │ │ │ ├── SessionStateCommandEntry.cs │ │ │ ├── SessionStateFormatEntry.cs │ │ │ ├── SessionStateFunctionEntry.cs │ │ │ ├── SessionStateProviderEntry.cs │ │ │ ├── SessionStateProxy.cs │ │ │ ├── SessionStateScriptEntry.cs │ │ │ ├── SessionStateTypeEntry.cs │ │ │ ├── SessionStateVariableEntry.cs │ │ │ ├── TypeConfigurationEntry.cs │ │ │ └── TypeTable.cs │ │ ├── RuntimeException.cs │ │ ├── ScopedItemOptions.cs │ │ ├── ScriptBlock.cs │ │ ├── ScriptInfo.cs │ │ ├── SecurityDescriptorCmdletProviderIntrinsics.cs │ │ ├── SessionCapabilities.cs │ │ ├── SessionState.cs │ │ ├── SessionStateCategory.cs │ │ ├── SessionStateEntryVisibility.cs │ │ ├── SessionStateException.cs │ │ ├── SessionStateUnauthorizedAccessException.cs │ │ ├── SetValueException.cs │ │ ├── SetValueInvocationException.cs │ │ ├── SettingValueExceptionEventArgs.cs │ │ ├── ShouldProcessReason.cs │ │ ├── Signature.cs │ │ ├── SignatureStatus.cs │ │ ├── SigningOption.cs │ │ ├── SwitchParameter.cs │ │ ├── ValidateArgumentsAttribute.cs │ │ ├── ValidateCountAttribute.cs │ │ ├── ValidateEnumeratedArgumentsAttribute.cs │ │ ├── ValidateLengthAttribute.cs │ │ ├── ValidateNotNullAttribute.cs │ │ ├── ValidateNotNullOrEmptyAttribute.cs │ │ ├── ValidatePatternAttribute.cs │ │ ├── ValidateRangeAttribute.cs │ │ ├── ValidateSetAttribute.cs │ │ ├── ValidationMetadataException.cs │ │ ├── VariablePath.cs │ │ ├── VerboseRecord.cs │ │ ├── VerbsCommon.cs │ │ ├── VerbsCommunications.cs │ │ ├── VerbsData.cs │ │ ├── VerbsDiagnostic.cs │ │ ├── VerbsLifecycle.cs │ │ ├── VerbsOther.cs │ │ ├── VerbsSecurity.cs │ │ ├── WarningRecord.cs │ │ ├── WildcardOptions.cs │ │ ├── WildcardPattern.cs │ │ ├── WildcardPatternException.cs │ │ └── WorkflowInfo.cs │ ├── Extensions │ │ ├── DictionaryExtensions.cs │ │ ├── EnumerableExtensions.cs │ │ ├── Irony │ │ │ └── ValidateTokenEventArgsExtensions.cs │ │ ├── JoinStringExtensions.cs │ │ ├── PSObjectExtensions.cs │ │ ├── QueueExtensions.cs │ │ ├── Reflection.cs │ │ ├── StringExtensions.cs │ │ └── TypeExtensions.cs │ ├── Microsoft.PowerShell │ │ ├── Commands │ │ │ ├── AddPSSnapinCommand.cs │ │ │ ├── AliasProvider.cs │ │ │ ├── AliasProviderDynamicParameters.cs │ │ │ ├── EnvironmentProvider.cs │ │ │ ├── ExportModuleMemberCommand.cs │ │ │ ├── FileSystemCmdletProviderEncoding.cs │ │ │ ├── FileSystemContentDynamicParametersBase.cs │ │ │ ├── FileSystemContentReaderDynamicParameters.cs │ │ │ ├── FileSystemContentWriterDynamicParameters.cs │ │ │ ├── FileSystemProvider.cs │ │ │ ├── FunctionProvider.cs │ │ │ ├── FunctionProviderDynamicParameters.cs │ │ │ ├── GetCommandCommand.cs │ │ │ ├── GetHelpCommand.cs │ │ │ ├── GetHistoryCommand.cs │ │ │ ├── GetModuleCommand.cs │ │ │ ├── GetPSSnapinCommand.cs │ │ │ ├── HistoryInfo.cs │ │ │ ├── ImportModuleCommand.cs │ │ │ ├── Internal │ │ │ │ └── Format │ │ │ │ │ └── FrontEndCommandBase.cs │ │ │ ├── ModuleCmdletBase.cs │ │ │ ├── RemoveModuleCommand.cs │ │ │ ├── RemovePSSnapinCommand.cs │ │ │ ├── SessionStateProviderBase.cs │ │ │ └── VariableProvider.cs │ │ ├── DefaultHost.cs │ │ ├── ModuleSpecification.cs │ │ └── PSCorePSSnapIn.cs │ ├── PSFieldProperty.cs │ ├── Pash │ │ ├── BitwiseOperation.cs │ │ ├── ExpandableStringParser.cs │ │ ├── Implementation │ │ │ ├── AliasIntrinsics.cs │ │ │ ├── ApplicationProcessor.cs │ │ │ ├── ArithmeticOperations.cs │ │ │ ├── CmdletIntrinsics.cs │ │ │ ├── CmdletParameterBinder.cs │ │ │ ├── CommandManager.cs │ │ │ ├── CommandParameterDiscovery.cs │ │ │ ├── CommandProcessor.cs │ │ │ ├── CommandProcessorBase.cs │ │ │ ├── Commands │ │ │ │ ├── EncodingMapping.cs │ │ │ │ ├── FileContentReader.cs │ │ │ │ ├── FileContentWriter.cs │ │ │ │ ├── SessionStateContentReader.cs │ │ │ │ └── SessionStateContentWriter.cs │ │ │ ├── CommonCmdletParameters.cs │ │ │ ├── ComparisonOperations.cs │ │ │ ├── CredentialMessages.cs │ │ │ ├── ExecutionContext.cs │ │ │ ├── ExecutionVisitor.cs │ │ │ ├── ExecutionVisitorHelper │ │ │ │ ├── FileRedirectionOperator.cs │ │ │ │ ├── FileRedirectionVisitor.cs │ │ │ │ ├── RedirectionVisitor.cs │ │ │ │ ├── SettableExpression.cs │ │ │ │ ├── SettableIndexExpression.cs │ │ │ │ ├── SettableInvokeMemberExpression.cs │ │ │ │ ├── SettableMemberExpression.cs │ │ │ │ └── SettableVariableExpression.cs │ │ │ ├── FunctionIntrinsics.cs │ │ │ ├── IScopedItem.cs │ │ │ ├── IScriptBlockInfo.cs │ │ │ ├── ISessionStateIntrinsics.cs │ │ │ ├── IncludeExcludeFilter.cs │ │ │ ├── LocalHost.cs │ │ │ ├── LocalHostRawUserInterface.cs │ │ │ ├── LocalHostUserInterface.cs │ │ │ ├── LocalPipeline.cs │ │ │ ├── LocalRunspace.cs │ │ │ ├── LocalRunspaceConfiguration.cs │ │ │ ├── ModuleIntrinsics.cs │ │ │ ├── ModuleLoader.cs │ │ │ ├── Native │ │ │ │ ├── Posix.cs │ │ │ │ └── Shell32.cs │ │ │ ├── ObjectInfo.cs │ │ │ ├── ObjectPipelineReader.cs │ │ │ ├── ObjectStream.cs │ │ │ ├── ObjectStreamWriter.cs │ │ │ ├── PSNullVariable.cs │ │ │ ├── PSObjectPipelineReader.cs │ │ │ ├── PSObjectProperties.cs │ │ │ ├── Parser.cs │ │ │ ├── PathGlobber.cs │ │ │ ├── PipelineCommandRuntime.cs │ │ │ ├── PipelineProcessor.cs │ │ │ ├── ProviderRuntime.cs │ │ │ ├── ReturnException.cs │ │ │ ├── ScopeUsages.cs │ │ │ ├── ScriptBlockParameterBinder.cs │ │ │ ├── ScriptBlockProcessor.cs │ │ │ ├── SecureStringReader.cs │ │ │ ├── SessionStateGlobal.cs │ │ │ ├── SessionStateIntrinsics.cs │ │ │ ├── SessionStateScope.cs │ │ │ ├── StringExtensions.cs │ │ │ ├── TabExpanderUI.cs │ │ │ ├── TabExpansionProvider.cs │ │ │ └── getline.cs │ │ ├── NumericMultiplier.cs │ │ ├── ParserIntrinsics │ │ │ ├── AstBuilder.cs │ │ │ ├── BacktickLineContinuationTerminal.cs │ │ │ ├── CaseInsensitiveGrammar.cs │ │ │ ├── PowerShellGrammar.BinaryOperatorTerminal.cs │ │ │ ├── PowerShellGrammar.ComparisonOperatorTerminal.cs │ │ │ ├── PowerShellGrammar.Terminals.cs │ │ │ ├── PowerShellGrammar.cs │ │ │ ├── README.TXT │ │ │ ├── ScriptExtent.cs │ │ │ └── SkippedTerminal.cs │ │ ├── PashVariables.cs │ │ ├── Path.cs │ │ └── PathNavigation.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── System.Management.csproj ├── TestHost │ ├── 2.3.5.1.2 Real literals.cs │ ├── 7.1.2 - Member Access.cs │ ├── 7.1.6 - SubexpressionOperator.cs │ ├── 7.1.7 - ArraySubexpressionOperator.cs │ ├── 7.10 - Logical operators.cs │ ├── 7.8.4 - Pattern Matching.cs │ ├── CmdletUserInputTests.cs │ ├── Cmdlets │ │ ├── AddTypeCommandTests.cs │ │ ├── GetCredentialTests.cs │ │ ├── JoinPathTests.cs │ │ ├── NewObjectCommandTests.cs │ │ ├── ReadHostTests.cs │ │ ├── SortObjectTests.cs │ │ └── VerboseCommonParameterTests.cs │ ├── DotSourceTests.cs │ ├── FileSystemTests │ │ ├── FileSystemNavigationTests.cs │ │ ├── FileSystemTestBase.cs │ │ ├── FileSystemTestBaseTests.cs │ │ ├── ProcessBlockingTests.cs │ │ └── ShellExecutionTest.cs │ ├── FormatTests.cs │ ├── FullHostTests.cs │ ├── InitialSessionStateTests.cs │ ├── InvokeScriptTests.cs │ ├── LiteralsTests.cs │ ├── LocalHostUserInterfaceTests.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── ScriptParameterTests.cs │ ├── SessionStateScopeTests.cs │ ├── SnapInTests.cs │ ├── System.Management │ │ ├── ParameterTests.cs │ │ ├── PathNavigationTests.cs │ │ └── PathTests.cs │ ├── TabExpanderTest.cs │ ├── TabExpansionProviderTests.cs │ ├── TestHelpers │ │ ├── NUnitSpecificationExtensions.cs │ │ ├── TestCommand.cs │ │ ├── TestInvokeScriptCommand.cs │ │ └── TestVerboseOutputCommand.cs │ ├── TestHost.cs │ ├── TestHost.csproj │ ├── TestHostRawUserInterface.cs │ ├── TestHostUserInterface.cs │ └── Tests.cs ├── TestPSSnapIn │ ├── PashTestSnapIn.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TestCommands.cs │ ├── TestContainerProvider.cs │ ├── TestContentCmdletProvider.cs │ ├── TestCreateErrorCommand.cs │ ├── TestDriveProvider.cs │ ├── TestItemProvider.cs │ ├── TestNavigationProvider.cs │ ├── TestPSSnapIn.csproj │ └── TestParameterizedProperties.cs └── TestParameterizedProperties │ ├── AssemblyInfo.vb │ ├── TestOverloadedByArgumentNumbersParameterizedProperty.vb │ ├── TestParameterizedProperties.sln │ ├── TestParameterizedProperties.vbproj │ └── bin │ └── TestParameterizedProperties.dll ├── Spikes └── Spikes │ ├── MemberExpressionSpikes.cs │ ├── NewObjectCommandSpikes.cs │ ├── Properties │ └── AssemblyInfo.cs │ └── Spikes.csproj ├── Tools ├── FxCop │ ├── PashRules.Errors.ruleset │ └── PashRules.Warnings.ruleset └── NUnit-2.6.1 │ ├── Logo.ico │ ├── bin │ ├── NUnitFitTests.html │ ├── NUnitTests.VisualState.xml │ ├── NUnitTests.config │ ├── NUnitTests.nunit │ ├── TestResult-net-3.5.xml │ ├── TestResult.xml │ ├── agent.conf │ ├── agent.log.conf │ ├── framework │ │ ├── nunit.framework.dll │ │ ├── nunit.framework.xml │ │ ├── nunit.mocks.dll │ │ └── pnunit.framework.dll │ ├── launcher.log.conf │ ├── lib │ │ ├── Images │ │ │ ├── Ellipsis.gif │ │ │ ├── Tree │ │ │ │ ├── Circles │ │ │ │ │ ├── Failure.jpg │ │ │ │ │ ├── Ignored.jpg │ │ │ │ │ ├── Inconclusive.jpg │ │ │ │ │ ├── Skipped.jpg │ │ │ │ │ └── Success.jpg │ │ │ │ ├── Classic │ │ │ │ │ ├── Failure.jpg │ │ │ │ │ ├── Ignored.jpg │ │ │ │ │ ├── Inconclusive.jpg │ │ │ │ │ ├── Skipped.jpg │ │ │ │ │ └── Success.jpg │ │ │ │ ├── Default │ │ │ │ │ ├── Failure.png │ │ │ │ │ ├── Ignored.png │ │ │ │ │ ├── Inconclusive.png │ │ │ │ │ ├── Skipped.png │ │ │ │ │ └── Success.png │ │ │ │ └── Visual Studio │ │ │ │ │ ├── Failure.png │ │ │ │ │ ├── Ignored.png │ │ │ │ │ ├── Inconclusive.png │ │ │ │ │ ├── SeriousWarning.png │ │ │ │ │ ├── Skipped.png │ │ │ │ │ └── Success.png │ │ │ ├── pinned.gif │ │ │ └── unpinned.gif │ │ ├── NSubstitute.dll │ │ ├── NSubstitute.xml │ │ ├── Rhino.Mocks.dll │ │ ├── Rhino.Mocks.xml │ │ ├── log4net.dll │ │ ├── nunit-console-runner.dll │ │ ├── nunit-gui-runner.dll │ │ ├── nunit.core.dll │ │ ├── nunit.core.interfaces.dll │ │ ├── nunit.uiexception.dll │ │ ├── nunit.uikit.dll │ │ └── nunit.util.dll │ ├── nunit-agent-x86.exe │ ├── nunit-agent-x86.exe.config │ ├── nunit-agent.exe │ ├── nunit-agent.exe.config │ ├── nunit-console-x86.exe │ ├── nunit-console-x86.exe.config │ ├── nunit-console.exe │ ├── nunit-console.exe.config │ ├── nunit-editor.exe │ ├── nunit-x86.exe │ ├── nunit-x86.exe.config │ ├── nunit.exe │ ├── nunit.exe.config │ ├── nunit.framework.dll │ ├── pnunit-agent.exe │ ├── pnunit-agent.exe.config │ ├── pnunit-launcher.exe │ ├── pnunit-launcher.exe.config │ ├── pnunit.framework.dll │ ├── pnunit.tests.dll │ ├── runpnunit.bat │ ├── test.conf │ └── tests │ │ ├── mock-assembly.dll │ │ ├── nonamespace-assembly.dll │ │ ├── nunit-console.tests.dll │ │ ├── nunit-editor.tests.dll │ │ ├── nunit-gui.tests.dll │ │ ├── nunit.core.tests.dll │ │ ├── nunit.framework.dll │ │ ├── nunit.framework.tests.dll │ │ ├── nunit.mocks.tests.dll │ │ ├── nunit.uiexception.tests.dll │ │ ├── nunit.uikit.tests.dll │ │ ├── nunit.util.tests.dll │ │ ├── test-assembly.dll │ │ └── test-utilities.dll │ ├── doc │ ├── actionAttributes.html │ ├── addinsDialog.html │ ├── assemblyIsolation.html │ ├── assertions.html │ ├── attributes.html │ ├── category.html │ ├── codeFuncs.js │ ├── collectionAssert.html │ ├── collectionConstraints.html │ ├── combinatorial.html │ ├── comparisonAsserts.html │ ├── comparisonConstraints.html │ ├── compoundConstraints.html │ ├── conditionAsserts.html │ ├── conditionConstraints.html │ ├── configEditor.html │ ├── configFiles.html │ ├── consoleCommandLine.html │ ├── constraintModel.html │ ├── contextMenu.html │ ├── culture.html │ ├── customConstraints.html │ ├── datapoint.html │ ├── datapointProviders.html │ ├── delayedConstraint.html │ ├── description.html │ ├── directoryAssert.html │ ├── equalConstraint.html │ ├── equalityAsserts.html │ ├── eventListeners.html │ ├── exception.html │ ├── exceptionAsserts.html │ ├── explicit.html │ ├── extensibility.html │ ├── extensionTips.html │ ├── favicon.ico │ ├── fileAssert.html │ ├── files │ │ ├── QuickStart.Spanish.doc │ │ ├── QuickStart.doc │ │ ├── Results.xsd │ │ └── Summary.xslt │ ├── fixtureSetup.html │ ├── fixtureTeardown.html │ ├── getStarted.html │ ├── guiCommandLine.html │ ├── identityAsserts.html │ ├── ignore.html │ ├── img │ │ ├── addinsDialog.jpg │ │ ├── advancedSettings.jpg │ │ ├── assembliesTab.jpg │ │ ├── assemblyReloadSettings.jpg │ │ ├── bulletOff.gif │ │ ├── bulletOn.gif │ │ ├── configEditor.jpg │ │ ├── console-mock.jpg │ │ ├── generalSettings.jpg │ │ ├── generalTab.jpg │ │ ├── gui-screenshot.jpg │ │ ├── gui-verify.jpg │ │ ├── internalTraceSettings.jpg │ │ ├── langFilter.gif │ │ ├── logo.gif │ │ ├── miniGui.jpg │ │ ├── nunitTestAdapter.png │ │ ├── projectEditorSettings.jpg │ │ ├── runtimeSelectionSettings.jpg │ │ ├── testLoadSettings.jpg │ │ ├── testOutputSettings.jpg │ │ ├── testProperties.jpg │ │ ├── testResultSettings.jpg │ │ ├── textOutputSettings.jpg │ │ ├── treeDisplaySettings.jpg │ │ ├── visualStudioSettings.jpg │ │ └── xmlView.jpg │ ├── index.html │ ├── installation.html │ ├── license.html │ ├── listMapper.html │ ├── mainMenu.html │ ├── maxtime.html │ ├── multiAssembly.html │ ├── nunit-agent.html │ ├── nunit-console.html │ ├── nunit-gui.html │ ├── nunit.css │ ├── nunitAddins.html │ ├── pairwise.html │ ├── parameterizedTests.html │ ├── pathConstraints.html │ ├── platform.html │ ├── pnunit.html │ ├── projectEditor.html │ ├── property.html │ ├── propertyConstraint.html │ ├── quickStart.html │ ├── random.html │ ├── range.html │ ├── releaseBreakdown.html │ ├── releaseNotes.html │ ├── repeat.html │ ├── requiredAddin.html │ ├── requiresMTA.html │ ├── requiresSTA.html │ ├── requiresThread.html │ ├── reusableConstraint.html │ ├── runningTests.html │ ├── runtimeSelection.html │ ├── sameasConstraint.html │ ├── samples.html │ ├── sequential.html │ ├── setCulture.html │ ├── setUICulture.html │ ├── settingsDialog.html │ ├── setup.html │ ├── setupFixture.html │ ├── stringAssert.html │ ├── stringConstraints.html │ ├── suite.html │ ├── suiteBuilders.html │ ├── teardown.html │ ├── test.html │ ├── testCase.html │ ├── testCaseSource.html │ ├── testContext.html │ ├── testDecorators.html │ ├── testFixture.html │ ├── testProperties.html │ ├── testcaseBuilders.html │ ├── testcaseProviders.html │ ├── theory.html │ ├── throwsConstraint.html │ ├── timeout.html │ ├── typeAsserts.html │ ├── typeConstraints.html │ ├── upgrade.html │ ├── utilityAsserts.html │ ├── valueSource.html │ ├── values.html │ ├── vsSupport.html │ ├── vsTestAdapter.html │ ├── vsTestAdapterLicense.html │ └── writingTests.html │ ├── license.txt │ └── samples │ ├── Extensibility │ └── Core │ │ ├── CoreExtensibility.sln │ │ ├── Minimal │ │ ├── Minimal.build │ │ ├── Minimal.cs │ │ ├── Minimal.csproj │ │ └── ReadMe.txt │ │ ├── SampleFixtureExtension │ │ ├── AssemblyInfo.cs │ │ ├── ReadMe.txt │ │ ├── SampleFixtureExtension.build │ │ ├── SampleFixtureExtension.cs │ │ ├── SampleFixtureExtension.csproj │ │ ├── SampleFixtureExtensionAttribute.cs │ │ ├── SampleFixtureExtensionBuilder.cs │ │ └── Tests │ │ │ ├── AssemblyInfo.cs │ │ │ ├── SampleFixtureExtensionTests.cs │ │ │ └── SampleFixtureExtensionTests.csproj │ │ └── SampleSuiteExtension │ │ ├── Addin.cs │ │ ├── AssemblyInfo.cs │ │ ├── ReadMe.txt │ │ ├── SampleSuiteExtension.build │ │ ├── SampleSuiteExtension.cs │ │ ├── SampleSuiteExtension.csproj │ │ ├── SampleSuiteExtensionAttribute.cs │ │ ├── SampleSuiteExtensionBuilder.cs │ │ └── Tests │ │ ├── SampleSuiteExtensionTests.cs │ │ └── SampleSuiteExtensionTests.csproj │ ├── ReadMe.txt │ ├── cpp │ ├── cpp-cli │ │ ├── cpp-cli.sln │ │ ├── failures │ │ │ ├── AssemblyInfo.cpp │ │ │ ├── cpp-cli-failures.build │ │ │ ├── cpp-cli-failures.vcproj │ │ │ ├── cppsample.cpp │ │ │ └── cppsample.h │ │ └── syntax │ │ │ ├── AssemblyInfo.cpp │ │ │ ├── cpp-cli-syntax.build │ │ │ ├── cpp-cli-syntax.cpp │ │ │ └── cpp-cli-syntax.vcproj │ └── managed │ │ ├── failures │ │ ├── AssemblyInfo.cpp │ │ ├── cpp-managed-failures.build │ │ ├── cpp-managed-failures.vcproj │ │ ├── cppsample.cpp │ │ └── cppsample.h │ │ └── managed-cpp.sln │ ├── csharp │ ├── CSharp.sln │ ├── failures │ │ ├── AssemblyInfo.cs │ │ ├── CSharpTest.cs │ │ ├── cs-failures.build │ │ └── cs-failures.csproj │ ├── money │ │ ├── AssemblyInfo.cs │ │ ├── IMoney.cs │ │ ├── Money.cs │ │ ├── MoneyBag.cs │ │ ├── MoneyTest.cs │ │ ├── cs-money.build │ │ └── cs-money.csproj │ └── syntax │ │ ├── AssemblyInfo.cs │ │ ├── AssertSyntaxTests.cs │ │ ├── cs-syntax.build │ │ └── cs-syntax.csproj │ ├── jsharp │ ├── failures │ │ ├── AssemblyInfo.jsl │ │ ├── JSharpTest.jsl │ │ ├── jsharp-failures.build │ │ └── jsharp-failures.vjsproj │ └── jsharp.sln │ ├── samples.common │ └── vb │ ├── failures │ ├── AssemblyInfo.vb │ ├── SimpleVBTest.vb │ ├── vb-failures.build │ └── vb-failures.vbproj │ ├── money │ ├── AssemblyInfo.vb │ ├── IMoney.vb │ ├── Money.vb │ ├── MoneyBag.vb │ ├── MoneyTest.vb │ ├── vb-money.build │ └── vb-money.vbproj │ ├── syntax │ ├── AssemblyInfo.vb │ ├── AssertSyntaxTests.vb │ ├── vb-syntax.build │ └── vb-syntax.vbproj │ └── vb-samples.sln ├── VARIABLES.md ├── WindowsPowershellReferenceTests.nunit ├── WindowsPowershellReferenceTests ├── Properties │ └── AssemblyInfo.cs ├── ReferenceTestInfo.cs ├── TestModule │ ├── Properties │ │ └── AssemblyInfo.cs │ └── TestModule.csproj ├── WindowsPowershellReferenceTests.csproj └── WindowsPowershellReferenceTests.sln └── appveyor.yml /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 4 7 | insert_final_newline = true 8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build and Object Folders 2 | bin/ 3 | obj/ 4 | 5 | #User Specific Files 6 | *.user 7 | *.suo 8 | *.userprefs 9 | 10 | # Vim Specific Files 11 | *.swp 12 | 13 | #Resource Caches 14 | _ReSharper.* 15 | *.sln.cache 16 | 17 | #Mono parser cache files 18 | *.pidb 19 | 20 | # GoldParser generator log, and possibly others 21 | *.log 22 | 23 | # NUnit 24 | test-results/ 25 | *.VisualState.xml 26 | TestResult.xml 27 | 28 | # NCrunch 29 | *.ncrunchproject 30 | *.ncrunchsolution 31 | _NCrunch_*/ 32 | *.ldf 33 | *.mdf 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: csharp 2 | 3 | sudo: false # use the new container-based Travis infrastructure 4 | 5 | mono: 6 | - latest 7 | - 3.2.8 8 | 9 | notifications: 10 | email: 11 | on_success: always 12 | 13 | script: "xbuild /target:test" 14 | -------------------------------------------------------------------------------- /Documents/ImplementationConcepts/format-data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Documents/ImplementationConcepts/format-data.png -------------------------------------------------------------------------------- /Documents/ImplementationConcepts/format_output_framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Documents/ImplementationConcepts/format_output_framework.png -------------------------------------------------------------------------------- /Libraries/Irony/Irony/Ast/AstExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Irony.Parsing; 7 | 8 | namespace Irony.Ast { 9 | public static class AstExtensions { 10 | 11 | public static ParseTreeNodeList GetMappedChildNodes(this ParseTreeNode node) { 12 | var term = node.Term; 13 | if (!term.HasAstConfig()) 14 | return node.ChildNodes; 15 | var map = term.AstConfig.PartsMap; 16 | //If no map then mapped list is the same as original 17 | if (map == null) return node.ChildNodes; 18 | //Create mapped list 19 | var result = new ParseTreeNodeList(); 20 | for (int i = 0; i < map.Length; i++) { 21 | var index = map[i]; 22 | result.Add(node.ChildNodes[index]); 23 | } 24 | return result; 25 | } 26 | 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Libraries/Irony/Irony/Parsing/Grammar/ICanRunSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Irony.Parsing { 7 | // Should be implemented by Grammar class to be able to run samples in Grammar Explorer. 8 | public interface ICanRunSample { 9 | string RunSample(RunSampleArgs args); 10 | } 11 | 12 | public class RunSampleArgs { 13 | public LanguageData Language; 14 | public string Sample; 15 | public ParseTree ParsedSample; 16 | public RunSampleArgs(LanguageData language, string sample, ParseTree parsedSample) { 17 | Language = language; 18 | Sample = sample; 19 | ParsedSample = parsedSample; 20 | } 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Libraries/Irony/Irony/Parsing/Parser/ParserActions/AcceptParserAction.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Irony.Parsing { 7 | public class AcceptParserAction: ParserAction { 8 | 9 | public override void Execute(ParsingContext context) { 10 | context.CurrentParseTree.Root = context.ParserStack.Pop(); //Pop root 11 | context.Status = ParserStatus.Accepted; 12 | } 13 | 14 | public override string ToString() { 15 | return Resources.LabelActionAccept; 16 | } 17 | }//class 18 | } 19 | -------------------------------------------------------------------------------- /Libraries/Irony/Irony/Parsing/Parser/ParserActions/_ParserAction.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Irony.Parsing { 7 | 8 | public abstract class ParserAction { 9 | 10 | public ParserAction() { } 11 | 12 | public virtual void Execute(ParsingContext context) { 13 | 14 | } 15 | 16 | public override string ToString() { 17 | return Resources.LabelActionUnknown; //should never happen 18 | } 19 | }//class ParserAction 20 | 21 | public class ParserActionTable : Dictionary { } 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /Libraries/Irony/Irony/SilverlightOnly/Stopwatch.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace System { 3 | #if SILVERLIGHT 4 | //Less precise version for Silverlight 5 | internal class Stopwatch { 6 | long _startTime, _endTime; 7 | public void Start() { 8 | _startTime = Environment.TickCount; 9 | } 10 | public void Stop() { 11 | _endTime = Environment.TickCount; 12 | } 13 | public long ElapsedMilliseconds { 14 | get {return _endTime - _startTime; } 15 | } 16 | } 17 | #endif 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Libraries/Irony/Irony/Utilities/Extensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Irony.Parsing { 7 | public static class ParsingEnumExtensions { 8 | 9 | public static bool IsSet(this TermFlags flags, TermFlags flag) { 10 | return (flags & flag) != 0; 11 | } 12 | public static bool IsSet(this LanguageFlags flags, LanguageFlags flag) { 13 | return (flags & flag) != 0; 14 | } 15 | public static bool IsSet(this ParseOptions options, ParseOptions option) { 16 | return (options & option) != 0; 17 | } 18 | public static bool IsSet(this TermListOptions options, TermListOptions option) { 19 | return (options & option) != 0; 20 | } 21 | public static bool IsSet(this ProductionFlags flags, ProductionFlags flag) { 22 | return (flags & flag) != 0; 23 | } 24 | }//class 25 | 26 | } 27 | -------------------------------------------------------------------------------- /Libraries/Irony/Irony/irony.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Libraries/Irony/Irony/irony.snk -------------------------------------------------------------------------------- /Libraries/Irony/README.md: -------------------------------------------------------------------------------- 1 | The official Irony has language samples, a grammar explorer, and other stuff that I didn't include here. We only need the parsing engine. The rest can be found at http://irony.codeplex.com 2 | -------------------------------------------------------------------------------- /Source/Common.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | v4.5 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/AddContentCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | using Microsoft.PowerShell.Commands; 5 | using System.Management.Automation.Provider; 6 | using System.IO; 7 | 8 | namespace Microsoft.Commands.Management 9 | { 10 | [CmdletAttribute(VerbsCommon.Add, "Content", DefaultParameterSetName = "Path" /* HelpUri = "http://go.microsoft.com/fwlink/?LinkID=113278"*/)] 11 | public class AddContentCommand : WriteContentCommandBase 12 | { 13 | // TODO: #DynamicParameter support 14 | protected override void BeginProcessing() 15 | { 16 | Writers = InvokeProvider.Content.GetWriter(InternalPaths, ProviderRuntime); 17 | 18 | foreach (IContentWriter writer in Writers) 19 | { 20 | writer.Seek(0, SeekOrigin.End); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/ClearContentCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | using Microsoft.PowerShell.Commands; 5 | 6 | namespace Microsoft.Commands.Management 7 | { 8 | [Cmdlet(VerbsCommon.Clear, "Content", DefaultParameterSetName="Path" /*HelpUri="http://go.microsoft.com/fwlink/?LinkID=113282" */)] 9 | public class ClearContentCommand : ContentCommandBase 10 | { 11 | // TODO: #DynamicParameter support 12 | 13 | protected override void ProcessRecord() 14 | { 15 | InvokeProvider.Content.Clear(InternalPaths, ProviderRuntime); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/ClearItemCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | [Cmdlet("Clear", "Item", DefaultParameterSetName="Path", SupportsShouldProcess=true 7 | /*, SupportsTransactions=true, HelpUri="http://go.microsoft.com/fwlink/?LinkID=113283" */)] 8 | public class ClearItemCommand : CoreCommandWithFilteredPathsBase 9 | { 10 | [Parameter] 11 | public override SwitchParameter Force { get; set; } 12 | 13 | // TODO: support for #DynamicParameters (calling the providers appropriate method) 14 | 15 | protected override void ProcessRecord() 16 | { 17 | InvokeProvider.Item.Clear(InternalPaths, ProviderRuntime); 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/ContentCommandBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Management.Automation; 6 | 7 | namespace Microsoft.PowerShell.Commands 8 | { 9 | public abstract class ContentCommandBase : CoreCommandWithFilteredPathsBase, IDisposable 10 | { 11 | public void Dispose() 12 | { 13 | } 14 | 15 | [Parameter] 16 | public override SwitchParameter Force { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/CoreCommandWithCredentialsBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | using Pash.Implementation; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | public class CoreCommandWithCredentialsBase : CoreCommandBase 8 | { 9 | [Credential] 10 | [Parameter(ValueFromPipelineByPropertyName=true)] 11 | public PSCredential Credential { get; set; } 12 | 13 | protected CoreCommandWithCredentialsBase() 14 | { 15 | } 16 | 17 | internal override ProviderRuntime ProviderRuntime 18 | { 19 | get 20 | { 21 | var runtime = base.ProviderRuntime; 22 | if (Credential != null) 23 | { 24 | runtime.Credential = Credential; 25 | } 26 | return runtime; 27 | } 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/CoreCommandWithFilteredPathsBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class CoreCommandWithFilteredPathsBase : CoreCommandWithPathsBase 7 | { 8 | [Parameter] 9 | public override string[] Exclude { get; set; } 10 | 11 | [Parameter] 12 | public override string Filter { get; set; } 13 | 14 | [Parameter] 15 | public override string[] Include { get; set; } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/ISupportShouldProcess.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation.Internal 3 | { 4 | internal interface ISupportShouldProcess 5 | { 6 | bool SupportsShouldProcess { get; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/InvokeItemCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | [Cmdlet("Invoke", "Item", DefaultParameterSetName="Path", SupportsShouldProcess=true 7 | /* , SupportsTransactions=true, HelpUri="http://go.microsoft.com/fwlink/?LinkID=113345" */)] 8 | public class InvokeItemCommand : CoreCommandWithFilteredPathsBase 9 | { 10 | // TODO: support for #DynamicParameters (calling the providers appropriate method) 11 | 12 | protected override void ProcessRecord() 13 | { 14 | InvokeProvider.Item.Invoke(InternalPaths, ProviderRuntime); 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/PassThroughContentCommandBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | using Pash.Implementation; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | public class PassThroughContentCommandBase : ContentCommandBase 8 | { 9 | [Parameter] 10 | public SwitchParameter PassThru { get; set; } 11 | 12 | internal override ProviderRuntime ProviderRuntime 13 | { 14 | get 15 | { 16 | var runtime = base.ProviderRuntime; 17 | runtime.PassThru = PassThru.IsPresent; 18 | return runtime; 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/RemoveItemCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation; 5 | 6 | namespace Microsoft.PowerShell.Commands 7 | { 8 | [Cmdlet("Remove", "Item", SupportsShouldProcess = true, DefaultParameterSetName = "Path")] 9 | public class RemoveItemCommand : CoreCommandWithFilteredPathsBase 10 | { 11 | // TODO: support for #DynamicParameters (calling the providers appropriate method) 12 | 13 | [Parameter] 14 | public override SwitchParameter Force { get; set; } 15 | 16 | [Parameter] 17 | public SwitchParameter Recurse { get; set; } 18 | 19 | protected override void ProcessRecord() 20 | { 21 | InvokeProvider.Item.Remove(InternalPaths, Recurse.IsPresent, ProviderRuntime); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/SetContentCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | using Microsoft.PowerShell.Commands; 5 | 6 | namespace Microsoft.Commands.Management 7 | { 8 | [CmdletAttribute(VerbsCommon.Set, "Content", DefaultParameterSetName = "Path" /* HelpUri = "http://go.microsoft.com/fwlink/?LinkID=113392"*/)] 9 | public class SetContentCommand : WriteContentCommandBase 10 | { 11 | // TODO: #DynamicParameter support 12 | 13 | protected override void BeginProcessing() 14 | { 15 | InvokeProvider.Content.Clear(InternalPaths, ProviderRuntime); 16 | Writers = InvokeProvider.Content.GetWriter(InternalPaths, ProviderRuntime); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Management/TestPathType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands 4 | { 5 | public enum TestPathType 6 | { 7 | Any, 8 | Container, 9 | Leaf 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/CollectForEndProcessingCommandBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | using System.Collections.Generic; 4 | using System.Collections.ObjectModel; 5 | 6 | namespace Microsoft.PowerShell.Commands 7 | { 8 | public class CollectForEndProcessingCommandBase : PSCmdlet 9 | { 10 | [Parameter(ValueFromPipeline = true)] 11 | public PSObject InputObject { get; set; } 12 | 13 | protected Collection InputCollection { get; set; } 14 | 15 | protected CollectForEndProcessingCommandBase() 16 | { 17 | InputCollection = new Collection(); 18 | } 19 | 20 | protected override void ProcessRecord() 21 | { 22 | InputCollection.Add(InputObject); 23 | } 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/ConsoleColorCmdlet.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Management.Automation; 7 | 8 | namespace Microsoft.PowerShell.Commands.Utility 9 | { 10 | public abstract class ConsoleColorCmdlet : PSCmdlet 11 | { 12 | [ParameterAttribute] 13 | public ConsoleColor BackgroundColor { get; set; } 14 | 15 | [ParameterAttribute] 16 | public ConsoleColor ForegroundColor { get; set; } 17 | 18 | public ConsoleColorCmdlet() 19 | { 20 | this.BackgroundColor = Console.BackgroundColor; 21 | this.ForegroundColor = Console.ForegroundColor; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/ConvertToCsvCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands.Utility 5 | { 6 | [Cmdlet(VerbsData.ConvertTo, "Csv")] 7 | [OutputType(typeof(string))] 8 | public sealed class ConvertToCsvCommand : GenerateCsvCommandBase 9 | { 10 | protected override void ProcessRecord() 11 | { 12 | var lines = ProcessObject(InputObject); 13 | lines.ForEach(WriteObject); 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/ErrorFormatEntryData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class ErrorFormatEntryData : FormatEntryData 6 | { 7 | public string Message { get; private set; } 8 | public string CategoryInfo { get; private set; } 9 | public string FullyQualifiedErrorId { get; private set; } 10 | 11 | internal ErrorFormatEntryData(FormatShape shape, string message, string categoryInfo, string errorId) 12 | : base(shape) 13 | { 14 | Message = message; 15 | CategoryInfo = categoryInfo; 16 | FullyQualifiedErrorId = errorId; 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormatData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class FormatData 6 | { 7 | internal FormatShape Shape { get; private set; } 8 | 9 | internal FormatData(FormatShape shape) 10 | { 11 | Shape = shape; 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormatEndData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class FormatEndData : FormatData 6 | { 7 | internal FormatEndData(FormatShape shape) : base(shape) 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormatEntryData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class FormatEntryData : FormatData 6 | { 7 | internal bool WriteToErrorStream { get; set; } 8 | 9 | internal FormatEntryData(FormatShape shape) : base(shape) 10 | { 11 | } 12 | 13 | internal FormatEntryData(FormatEntryData entry) : base(entry.Shape) 14 | { 15 | WriteToErrorStream = entry.WriteToErrorStream; 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormatObjectProperty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands.Utility 5 | { 6 | public class FormatObjectProperty 7 | { 8 | public string PropertyName { get; set; } 9 | public string Value { get; set; } 10 | public Alignment Align { get; set; } 11 | 12 | public FormatObjectProperty() : this("", "", Alignment.Left) 13 | { 14 | } 15 | 16 | public FormatObjectProperty(string column, string value, Alignment align) 17 | { 18 | PropertyName = column; 19 | Value = value; 20 | Align = align; 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormatShape.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | using System.Collections.ObjectModel; 4 | 5 | namespace Microsoft.PowerShell.Commands.Utility 6 | { 7 | public enum FormatShape 8 | { 9 | Table, 10 | List, 11 | Undefined 12 | } 13 | 14 | internal static class FormatShapeHelper 15 | { 16 | private const int MaxPropertiesInTable = 5; 17 | 18 | public static FormatShape SelectByData(PSObject data) 19 | { 20 | if (data.BaseObject == null) // if it's null we don't really care... 21 | { 22 | return FormatShape.List; 23 | } 24 | var defaultDisplayProperties = data.GetDefaultDisplayPropertySet(); 25 | if (defaultDisplayProperties.Count <= MaxPropertiesInTable) 26 | { 27 | return FormatShape.Table; 28 | } 29 | return FormatShape.List; 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormatStartData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class FormatStartData : FormatData 6 | { 7 | 8 | internal FormatStartData(FormatShape shape) : base(shape) 9 | { 10 | } 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/FormattingState.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | [Flags] 6 | internal enum FormattingState 7 | { 8 | FormatStart, 9 | GroupStart, 10 | GroupEnd, 11 | FormatEnd 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/GroupEndData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class GroupEndData : FormatData 6 | { 7 | internal GroupEndData(FormatShape shape) : base(shape) 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/GroupStartData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class GroupStartData : FormatData 6 | { 7 | public string GroupName { get; set; } 8 | public string GroupType { get; set; } 9 | 10 | internal GroupStartData(FormatShape shape) : base(shape) 11 | { 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/ListFormatEntryData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Microsoft.PowerShell.Commands.Utility 5 | { 6 | internal class ListFormatEntryData : FormatEntryData 7 | { 8 | public List Entries { get; set; } 9 | 10 | internal ListFormatEntryData(List entries) : base(FormatShape.List) 11 | { 12 | Entries = entries; 13 | } 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/SimpleFormatEntryData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Commands.Utility 4 | { 5 | internal class SimpleFormatEntryData : FormatEntryData 6 | { 7 | public string Value { get; set; } 8 | 9 | internal SimpleFormatEntryData(FormatShape shape, string value) : base(shape) 10 | { 11 | Value = value; 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Format/TableFormatEntryData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Microsoft.PowerShell.Commands.Utility 5 | { 6 | internal class TableFormatEntryData : FormatEntryData 7 | { 8 | public List Row { get; set; } 9 | public bool Wrap { get; set; } 10 | public bool ShowHeader { get; set; } 11 | 12 | internal TableFormatEntryData(List row) : base(FormatShape.Table) 13 | { 14 | Row = row; 15 | } 16 | 17 | internal TableFormatEntryData(TableFormatEntryData entry) : base(entry) 18 | { 19 | Row = entry.Row; 20 | Wrap = entry.Wrap; 21 | ShowHeader = entry.ShowHeader; 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/FormatDefaultCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands.Utility 5 | { 6 | [Cmdlet("Format", "Default")] 7 | public class FormatDefaultCommand : FormatCommandBase 8 | { 9 | public FormatDefaultCommand() : base(FormatShape.Undefined) 10 | { 11 | } 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/FormatElement.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Collections; 6 | using System.Management.Automation; 7 | 8 | namespace Microsoft.PowerShell.Commands 9 | { 10 | public class FormatElement 11 | { 12 | public String[] Values { get; set; } 13 | public StyleInfo Style { get; set; } 14 | public bool isHeader { get; set; } 15 | public int ColumnSize { get; set; } 16 | } 17 | } -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/FormatListCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | //Classtodo: Still needs a ton of work. 4 | 5 | using System; 6 | using System.Management.Automation; 7 | using Microsoft.PowerShell.Commands.Utility; 8 | 9 | namespace Microsoft.PowerShell.Commands 10 | { 11 | [Cmdlet("Format", "List")] 12 | public class FormatListCommand : FormatShapeCommandBase 13 | { 14 | 15 | [Parameter(Position = 0)] 16 | public object[] Property { get; set; } 17 | 18 | public FormatListCommand() : base(FormatShape.List) 19 | { 20 | } 21 | 22 | protected override void BeginProcessing() 23 | { 24 | base.BeginProcessing(); 25 | FormatManager.Options.Properties = Property; 26 | } 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/GetHostCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation; 5 | using System.Management.Automation.Host; 6 | 7 | namespace Microsoft.PowerShell.Commands 8 | { 9 | [Cmdlet("Get", "Host")] 10 | [OutputType(typeof(PSHost))] 11 | public class GetHostCommand : PSCmdlet 12 | { 13 | protected override void BeginProcessing() 14 | { 15 | WriteObject(base.Host); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/Language.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Microsoft.PowerShell.Commands 7 | { 8 | public enum Language 9 | { 10 | CSharp, 11 | CSharpVersion3, 12 | CSharpVersion2, 13 | VisualBasic, 14 | JScript 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/MatchInfoContext.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public sealed class MatchInfoContext : ICloneable 7 | { 8 | public string[] DisplayPostContext { get; set; } 9 | public string[] DisplayPreContext { get; set; } 10 | public string[] PostContext { get; set; } 11 | public string[] PreContext { get; set; } 12 | 13 | public object Clone() 14 | { 15 | throw new NotImplementedException(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/MemberDefinition.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class MemberDefinition 7 | { 8 | public string TypeName { get; private set; } 9 | public string Name { get; private set; } 10 | public PSMemberTypes MemberType { get; private set; } 11 | public string Definition { get; private set; } 12 | 13 | public MemberDefinition(string typeName, string name, PSMemberTypes memberType, string definition) 14 | { 15 | TypeName = typeName; 16 | Name = name; 17 | MemberType = memberType; 18 | Definition = definition; 19 | } 20 | 21 | public override string ToString() 22 | { 23 | return Definition; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/ObjectCmdletBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class ObjectCmdletBase : PSCmdlet 7 | { 8 | [Parameter] 9 | public SwitchParameter CaseSensitive { get; set; } 10 | 11 | [Parameter] 12 | public string Culture { get; set; } 13 | 14 | public ObjectCmdletBase() 15 | { 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/OutDefaultCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | using Microsoft.PowerShell.Commands.Utility; 5 | 6 | namespace Microsoft.PowerShell.Commands 7 | { 8 | [Cmdlet("Out", "Default")] 9 | public class OutDefaultCommand : OutCommandBase 10 | { 11 | protected override void BeginProcessing() 12 | { 13 | OutputWriter = new HostOutputWriter(Host); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/OutNullCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | [Cmdlet("Out", "Null", SupportsShouldProcess = false)] 7 | public class OutNullCommand : OutCommandBase 8 | { 9 | protected override void ProcessRecord() 10 | { 11 | // do nothing 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/OutputAssemblyType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public enum OutputAssemblyType 7 | { 8 | Library, 9 | ConsoleApplication, 10 | WindowsApplication 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/StyleInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | /// 4 | /// This class defines the styling for any individual field in a FormatTable. Can not be used directly, only derivied from. 5 | /// 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Management.Automation; 10 | 11 | namespace Microsoft.PowerShell.Commands 12 | { 13 | public abstract class StyleInfo 14 | { 15 | public ConsoleColor ForegroundColor { get; set; } 16 | public ConsoleColor BackgroundColor { get; set; } 17 | } 18 | } -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Commands.Utility/WriteOutputCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | [Cmdlet("Write", "Output")] 7 | public sealed class WriteOutputCommand : PSCmdlet 8 | { 9 | [AllowEmptyCollection, Parameter(Position = 0, Mandatory = true, ValueFromPipeline = true, ValueFromRemainingArguments = true), AllowNull] 10 | public PSObject[] InputObject { get; set; } 11 | 12 | public WriteOutputCommand() 13 | { 14 | } 15 | 16 | protected override void ProcessRecord() 17 | { 18 | if (InputObject != null) 19 | { 20 | foreach (PSObject psObject in InputObject) 21 | { 22 | WriteObject(psObject, true); 23 | } 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Security/ConvertFromSecureStringCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | using System.Security; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | [OutputType(typeof(string))] 8 | [Cmdlet("ConvertFrom", "SecureString", DefaultParameterSetName="Secure" 9 | /*, HelpUri="http://go.microsoft.com/fwlink/?LinkID=113287"*/)] 10 | public sealed class ConvertFromSecureStringCommand : ConvertFromToSecureStringCommandBase 11 | { 12 | [Parameter(Position=0, ValueFromPipeline=true, Mandatory=true)] 13 | public SecureString SecureString { get; set; } 14 | 15 | protected override void ProcessRecord() 16 | { 17 | throw new NotImplementedException("No support for encryption/decryption of secure strings, yet."); 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Security/ConvertFromToSecureStringCommandBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | using System.Security; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | public abstract class ConvertFromToSecureStringCommandBase : SecureStringCommandBase 8 | { 9 | [Parameter(ParameterSetName="Open")] 10 | public byte[] Key { get; set; } 11 | 12 | [Parameter(Position=1, ParameterSetName="Secure")] 13 | public SecureString SecureKey { get; set; } 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Security/MyClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.PowerShell.Security 4 | { 5 | public class MyClass 6 | { 7 | public MyClass() 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/Microsoft.PowerShell.Security/SecureStringCommandBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Security; 3 | using System.Management.Automation; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | public abstract class SecureStringCommandBase : PSCmdlet 8 | { 9 | protected SecureString SecureStringData { get; set; } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/NUnitAssertHandlerAddin/NUnitAssertHandlerAddin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using NUnit.Framework; 4 | using NUnit.Core.Extensibility; 5 | 6 | [NUnitAddin] 7 | public class NUnitAssertHandlerAddin : IAddin 8 | { 9 | public bool Install(IExtensionHost host) 10 | { 11 | Debug.Listeners.Clear(); 12 | Debug.Listeners.Add(new AssertFailTraceListener()); 13 | Console.WriteLine("Addin: NUnitAssertHandlerAddin installed."); 14 | 15 | return true; 16 | } 17 | 18 | private class AssertFailTraceListener : DefaultTraceListener 19 | { 20 | public override void Fail(string message, string detailMessage) 21 | { 22 | Assert.Fail("Assertion failure: " + message); 23 | } 24 | 25 | public override void Fail(string message) 26 | { 27 | Assert.Fail("Assertion failure: " + message); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Source/ReferenceTests/Commands/AddMemberTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using System.Management.Automation; 4 | using TestPSSnapIn; 5 | using System.Runtime.Remoting; 6 | using System.Collections.Generic; 7 | 8 | namespace ReferenceTests.Commands 9 | { 10 | [TestFixture] 11 | public class AddMemberTests : ReferenceTestBase 12 | { 13 | [Test] 14 | public void AddMemberCanAddNoteProperties() 15 | { 16 | var results = ReferenceHost.RawExecute(NewlineJoin( 17 | "$a = New-Object -Type PSObject", 18 | "$a | Add-Member -Type NoteProperty -Name TestName -Value TestValue", 19 | "$a" 20 | )); 21 | Assert.AreEqual(1, results.Count, "No results"); 22 | var obj = results[0]; 23 | Assert.NotNull(obj.Members["TestName"]); 24 | Assert.NotNull(obj.Properties["TestName"]); 25 | } 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Source/ReferenceTests/Commands/ConvertToSecureStringTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using System.Security; 4 | 5 | namespace ReferenceTests.Commands 6 | { 7 | [TestFixture] 8 | public class ConvertToSecureStringTests : ReferenceTestBase 9 | { 10 | [Test] 11 | public void CanConvertPlaintextToSecureString() 12 | { 13 | var val = "ASuperSecureString"; 14 | var res = ReferenceHost.RawExecute("ConvertTo-SecureString -AsPlainText -Force '" + val + "'"); 15 | Assert.That(res.Count, Is.EqualTo(1)); 16 | var secureStr = res[0].BaseObject as SecureString; 17 | Assert.That(secureStr, Is.Not.Null, "Result is not a SecureString"); 18 | var decoded = TestUtil.DecodeSecureString(secureStr); 19 | Assert.That(decoded, Is.EqualTo(val)); 20 | } 21 | 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Source/ReferenceTests/GithubIssues/Issue200.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | 4 | namespace ReferenceTests.GithubIssues 5 | { 6 | [TestFixture] 7 | public class Issue200 : ReferenceTestBase 8 | { 9 | [Test] 10 | public void Issue200_StringIndexEquality() 11 | { 12 | ExecuteAndCompareTypedResult("$a = 'Hello'; if( $a[0] -eq 'H') { 'YES'; } else { 'NO'; }", "YES"); 13 | } 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Source/ReferenceTests/Language/ExpressionTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | 4 | namespace ReferenceTests.Language 5 | { 6 | [TestFixture] 7 | public class ExpressionTests : ReferenceTestBase 8 | { 9 | 10 | // a void value is not written to pipeline (see GeneralConversionTest.ConvertToVoidNotWrittenToPipeline) 11 | // but it can be used in an expression as null. Here are just some examples 12 | [TestCase("[string]::IsNullOrEmpty([void]0)")] 13 | [TestCase("[void]'foo' -eq $null")] 14 | [TestCase("$a = [void]'foo'; $var = Get-Variable a; ($var.name -eq 'a') -and ($var.value -eq $null)")] 15 | public void EmptyPipeExpressionIsHandledAsNull(string cmd) 16 | { 17 | ExecuteAndCompareTypedResult(cmd, true); 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Source/ReferenceTests/Language/IfElseTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | 4 | namespace ReferenceTests.Language 5 | { 6 | [TestFixture] 7 | public class IfElseTests : ReferenceTestBase 8 | { 9 | [Test] 10 | public void NewlinesCanSeparateIfAndElse() 11 | { 12 | var cmd = NewlineJoin("if ($false) { 1 }", "else { 2 }"); 13 | ExecuteAndCompareTypedResult(cmd, 2); 14 | } 15 | 16 | [Test] 17 | public void NewlinesCanSeparateIfAndElseif() 18 | { 19 | var cmd = NewlineJoin("if ($false) { 1 }", "elseif ($true) { 2 }", "else { 3 }"); 20 | ExecuteAndCompareTypedResult(cmd, 2); 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Source/ReferenceTests/Providers/ContentReaderTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using NUnit.Framework; 5 | 6 | namespace ReferenceTests.Providers 7 | { 8 | [TestFixture] 9 | public class ContentReaderTests : ReferenceTestBaseWithTestModule 10 | { 11 | [Test] 12 | public void ReadFileWithTwoLines() 13 | { 14 | string fileName = CreateFile(NewlineJoin("first", "second"), ".txt"); 15 | string result = ReferenceHost.Execute("Test-ContentReader -path " + fileName); 16 | 17 | Assert.AreEqual(NewlineJoin("first", "second"), result); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Source/ReferenceTests/Providers/ContentWriterTests.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using NUnit.Framework; 7 | 8 | namespace ReferenceTests.Providers 9 | { 10 | [TestFixture] 11 | public class ContentWriterTests : ReferenceTestBaseWithTestModule 12 | { 13 | [Test] 14 | public void WriteStringArrayToFileByDefaultAppendsText() 15 | { 16 | string fileName = CreateFile(NewlineJoin("first", "second"), ".txt"); 17 | ReferenceHost.Execute("Test-ContentWriter -value 'abc','def' -path " + fileName); 18 | 19 | string text = File.ReadAllText(fileName); 20 | Assert.AreEqual(NewlineJoin("first", "second", "abc", "def"), text); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/ReferenceTests/ReferenceTestBaseWithTestModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ReferenceTests 4 | { 5 | public class ReferenceTestBaseWithTestModule : ReferenceTestBase 6 | { 7 | 8 | public override void SetUp() 9 | { 10 | base.SetUp(); 11 | ImportTestCmdlets(); 12 | } 13 | 14 | public override void TearDown() 15 | { 16 | base.TearDown(); 17 | CleanImports(); 18 | } 19 | 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /Source/ReferenceTests/ReferenceTestInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Diagnostics; 5 | using System.IO; 6 | using System.Management.Automation; 7 | using System.Text.RegularExpressions; 8 | 9 | namespace ReferenceTests 10 | { 11 | class ReferenceTestInfo 12 | { 13 | public const string SHELL_NAME = "Pash"; 14 | public static string SHELL_EXECUTABLE = new Uri(typeof(Pash.Program).Assembly.CodeBase).LocalPath; 15 | public const bool IS_PASH = true; 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Source/System.Management.Tests/ParameterTests/TestDefaultParameterSetIsAllParameterSetsCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | 5 | namespace System.Management.Tests.ParameterTests 6 | { 7 | [Cmdlet("Test", "DefaultParameterSetIsAllParameterSets", DefaultParameterSetName = ParameterAttribute.AllParameterSets)] 8 | public class TestDefaultParameterSetIsAllParameterSetsCommand : PSCmdlet 9 | { 10 | [Parameter(Position = 0)] 11 | [ValidateNotNullOrEmpty] 12 | public string Filter { get; set; } 13 | 14 | internal static CmdletInfo CreateCmdletInfo() 15 | { 16 | return new CmdletInfo("Test-DefaultParameterSetIsAllParameterSets", typeof(TestDefaultParameterSetIsAllParameterSetsCommand), ""); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management.Tests/ParameterTests/TestOutputTypeCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | 5 | namespace System.Management.Tests.ParameterTests 6 | { 7 | [Cmdlet("Test", "OutputType")] 8 | [OutputType(typeof(string))] 9 | [OutputType(typeof(bool))] 10 | public sealed class TestOutputTypeCommand : PSCmdlet 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management.Tests/Pash/ParserIntrinsics/CaseInsensitiveGrammarTests.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using NUnit.Framework; 7 | 8 | namespace Pash.ParserIntrinsics.Tests 9 | { 10 | [TestFixture] 11 | public class CaseInsensitiveGrammarTests 12 | { 13 | // I had a bug where I got the case-insenstive bool flag backwards! 14 | 15 | class TestGrammar : CaseInsensitiveGrammar { } 16 | 17 | [Test] 18 | public void ATest() 19 | { 20 | var grammar = new TestGrammar(); 21 | Assert.False(grammar.CaseSensitive); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ActionPreference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace System.Management.Automation 4 | { 5 | /// 6 | /// Options to take if an error occurs. 7 | /// 8 | public enum ActionPreference 9 | { 10 | SilentlyContinue, 11 | Stop, 12 | Continue, 13 | Inquire 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/AliasAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Management.Automation.Internal; 5 | 6 | namespace System.Management.Automation 7 | { 8 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] 9 | public sealed class AliasAttribute : ParsingBaseAttribute 10 | { 11 | public AliasAttribute(params string[] aliasNames) 12 | { 13 | AliasNames = new List(aliasNames); 14 | } 15 | 16 | public IList AliasNames { get; private set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Alignment.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public enum Alignment 7 | { 8 | Undefined, 9 | Left, 10 | Center, 11 | Right 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/AllowEmptyCollectionAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation.Internal; 4 | 5 | namespace System.Management.Automation 6 | { 7 | /// 8 | /// Attribute that allows empty collections as arguments. 9 | /// 10 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] 11 | public sealed class AllowEmptyCollectionAttribute : CmdletMetadataAttribute 12 | { 13 | public AllowEmptyCollectionAttribute() { } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/AllowEmptyStringAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation.Internal; 3 | 4 | namespace System.Management.Automation 5 | { 6 | /// 7 | /// Attribute that allows an empty string as an arguement. 8 | /// 9 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 10 | public sealed class AllowEmptyStringAttribute : CmdletMetadataAttribute 11 | { 12 | public AllowEmptyStringAttribute() 13 | { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/AllowNullAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation.Internal; 4 | 5 | namespace System.Management.Automation 6 | { 7 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] 8 | public sealed class AllowNullAttribute : CmdletMetadataAttribute 9 | { 10 | public AllowNullAttribute() { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ArgumentTransformationAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation.Internal; 5 | 6 | namespace System.Management.Automation 7 | { 8 | /// 9 | /// Base class for custom attributes that transform arguements. 10 | /// 11 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 12 | public abstract class ArgumentTransformationAttribute : CmdletMetadataAttribute 13 | { 14 | public abstract object Transform(EngineIntrinsics engineIntrinsics, object inputData); 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/AuthorizationManager.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation.Host; 5 | using System.Runtime.InteropServices; 6 | 7 | namespace System.Management.Automation 8 | { 9 | /// 10 | /// Allows for the blocking of cmdlets from running (using an inhereted ShouldRun method). 11 | /// 12 | public class AuthorizationManager 13 | { 14 | private string _shellId; 15 | 16 | public AuthorizationManager(string shellId) 17 | { 18 | _shellId = shellId; 19 | } 20 | 21 | protected virtual bool ShouldRun(CommandInfo commandInfo, CommandOrigin origin, PSHost host, out Exception reason) 22 | { 23 | reason = null; 24 | return true; 25 | } 26 | 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/BreakException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public class BreakException : LoopFlowException 6 | { 7 | public BreakException(string label) : base(label) 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/CommandOrigin.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace System.Management.Automation 4 | { 5 | /// 6 | /// Defines where a command was dispatched from. 7 | /// 8 | public enum CommandOrigin 9 | { 10 | Runspace, 11 | Internal 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/CommandTypes.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | /// 9 | /// Used by the Command Manager to categories the different things that map to a parser command. 10 | /// 11 | [Flags] 12 | public enum CommandTypes 13 | { 14 | Alias = 1, 15 | Function = 2, 16 | Filter = 4, 17 | Cmdlet = 8, 18 | ExternalScript = 16, 19 | Application = 32, 20 | Script = 64, 21 | All = 127, 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ConfirmImpact.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | /// 5 | /// Defines the danger of the action a cmdlet is about to take. 6 | /// 7 | public enum ConfirmImpact 8 | { 9 | None = 0, 10 | Low = 1, 11 | Medium = 2, 12 | High = 3, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ContinueException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public class ContinueException : LoopFlowException 6 | { 7 | public ContinueException(string label) : base(label) 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/CopyContainers.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | /// 7 | /// Gives options of how a copy of a provider container should happen. 8 | /// 9 | public enum CopyContainers 10 | { 11 | CopyTargetContainer = 0, 12 | CopyChildrenOfTargetContainer = 1, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/CustomPSSnapIn.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Collections.ObjectModel; 6 | using System.Management.Automation.Runspaces; 7 | 8 | namespace System.Management.Automation 9 | { 10 | /// 11 | /// Base class for other classes which represent PSSnapins. 12 | /// 13 | public abstract class CustomPSSnapIn : PSSnapInInstaller 14 | { 15 | protected CustomPSSnapIn() 16 | { 17 | } 18 | 19 | public virtual Collection Cmdlets { get; private set; } 20 | 21 | public virtual Collection Formats { get; private set; } 22 | 23 | public virtual Collection Providers { get; private set; } 24 | 25 | public virtual Collection Types { get; private set; } 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/DataAddedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public sealed class DataAddedEventArgs : EventArgs 9 | { 10 | public int Index 11 | { 12 | get 13 | { 14 | throw new NotImplementedException(); 15 | } 16 | } 17 | public Guid PowerShellInstanceId 18 | { 19 | get 20 | { 21 | throw new NotImplementedException(); 22 | } 23 | } 24 | internal DataAddedEventArgs(Guid psInstanceId, int index) 25 | { 26 | throw new NotImplementedException(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/DebugRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public sealed class DebugRecord : InformationalRecord 9 | { 10 | internal DebugRecord(string message) 11 | : base(message) 12 | { 13 | } 14 | internal DebugRecord(PSObject psObject) 15 | : base(psObject) 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ExitException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public class ExitException : FlowControlException 7 | { 8 | public Object Argument { get; private set; } 9 | public ExitException(object arg) 10 | { 11 | Argument = arg; 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/FilterInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Collections; 5 | using System.Management.Automation.Language; 6 | using System.Collections.Generic; 7 | 8 | namespace System.Management.Automation 9 | { 10 | public class FilterInfo : FunctionInfo 11 | { 12 | internal FilterInfo(string name, ScriptBlock filter, IEnumerable parameters) 13 | : base(name, filter, parameters) 14 | { 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/FlowControlException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public abstract class FlowControlException : SystemException 6 | { 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/GettingValueExceptionEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public class GettingValueExceptionEventArgs : EventArgs 9 | { 10 | public Exception Exception { get; private set; } 11 | public bool ShouldThrow { get; set; } 12 | public object ValueReplacement { get; set; } 13 | 14 | internal GettingValueExceptionEventArgs(System.Exception exception) { Exception = exception; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Host/BufferCellType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Host 5 | { 6 | public enum BufferCellType 7 | { 8 | Complete = 0, 9 | Leading = 1, 10 | Trailing = 2, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Host/ChoiceDescription.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Host 5 | { 6 | public sealed class ChoiceDescription 7 | { 8 | public ChoiceDescription(string label) { throw new NotImplementedException(); } 9 | public ChoiceDescription(string label, string helpMessage) { throw new NotImplementedException(); } 10 | 11 | public string HelpMessage { get; set; } 12 | public string Label { get; private set; } 13 | 14 | // internals 15 | //internal ChoiceDescription(string resStringBaseName, string labelResourceId, string helpResourceId); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Host/ControlKeyStates.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Host 5 | { 6 | [Flags] 7 | public enum ControlKeyStates 8 | { 9 | RightAltPressed = 1, 10 | LeftAltPressed = 2, 11 | RightCtrlPressed = 4, 12 | LeftCtrlPressed = 8, 13 | ShiftPressed = 16, 14 | NumLockOn = 32, 15 | ScrollLockOn = 64, 16 | CapsLockOn = 128, 17 | EnhancedKey = 256, 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Host/Coordinates.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Host 5 | { 6 | public struct Coordinates 7 | { 8 | public Coordinates(int x, int y) { throw new NotImplementedException(); } 9 | 10 | public static bool operator !=(Coordinates first, Coordinates second) { throw new NotImplementedException(); } 11 | public static bool operator ==(Coordinates first, Coordinates second) { throw new NotImplementedException(); } 12 | 13 | public int X { get; set; } 14 | public int Y { get; set; } 15 | 16 | public override bool Equals(object obj) { throw new NotImplementedException(); } 17 | public override int GetHashCode() { throw new NotImplementedException(); } 18 | public override string ToString() { throw new NotImplementedException(); } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Host/HostException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public class HostException : RuntimeException 6 | { 7 | public HostException() : base() 8 | { 9 | } 10 | 11 | public HostException(string message) : base(message) 12 | { 13 | } 14 | 15 | public HostException(string message, Exception innerException) : base(message, innerException) 16 | { 17 | } 18 | 19 | internal HostException(string message, string errorId, ErrorCategory errorCategory, object target) 20 | : base(message, errorId, errorCategory, target) 21 | { 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Host/ReadKeyOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Host 5 | { 6 | [Flags] 7 | public enum ReadKeyOptions 8 | { 9 | AllowCtrlC = 1, 10 | NoEcho = 2, 11 | IncludeKeyDown = 4, 12 | IncludeKeyUp = 8, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/IContainsErrorRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | public interface IContainsErrorRecord 5 | { 6 | ErrorRecord ErrorRecord { get; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/IDynamicParameters.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | public interface IDynamicParameters 5 | { 6 | object GetDynamicParameters(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/IResourceSupplier.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public interface IResourceSupplier 9 | { 10 | string GetResourceString(string baseName, string resourceId); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Internal/AutomationNull.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation.Internal 3 | { 4 | public static class AutomationNull 5 | { 6 | public static PSObject Value { get; private set; } 7 | 8 | static AutomationNull() 9 | { 10 | Value = new PSObject(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Internal/CmdletMetadataAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Internal 7 | { 8 | [AttributeUsage(AttributeTargets.All)] 9 | public abstract class CmdletMetadataAttribute : Attribute 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Internal/ParsingBaseAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Internal 7 | { 8 | [AttributeUsage(AttributeTargets.All)] 9 | public abstract class ParsingBaseAttribute : CmdletMetadataAttribute 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/AstVisitAction.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public enum AstVisitAction 7 | { 8 | Continue = 0, 9 | SkipChildren = 1, 10 | StopVisit = 2, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/AttributeBaseAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Management.Automation; 5 | 6 | namespace System.Management.Automation.Language 7 | { 8 | public abstract class AttributeBaseAst : Ast 9 | { 10 | protected AttributeBaseAst(IScriptExtent extent, ITypeName typeName) 11 | : base(extent) 12 | { 13 | this.TypeName = typeName; 14 | } 15 | 16 | public ITypeName TypeName { get; private set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/BreakStatementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Management.Automation; 5 | 6 | namespace System.Management.Automation.Language 7 | { 8 | public class BreakStatementAst : StatementAst 9 | { 10 | public BreakStatementAst(IScriptExtent extent, ExpressionAst label) 11 | : base(extent) 12 | { 13 | this.Label = label; 14 | } 15 | 16 | public ExpressionAst Label { get; private set; } 17 | 18 | internal override IEnumerable Children 19 | { 20 | get 21 | { 22 | yield return this.Label; 23 | foreach (var item in base.Children) yield return item; 24 | } 25 | } 26 | 27 | public override string ToString() 28 | { 29 | return "break"; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/CommandElementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation.Language 3 | { 4 | public abstract class CommandElementAst : Ast 5 | { 6 | protected CommandElementAst(IScriptExtent extent) : base(extent) { } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/DoUntilStatementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public class DoUntilStatementAst : LoopStatementAst 7 | { 8 | public DoUntilStatementAst(IScriptExtent extent, string label, PipelineBaseAst condition, StatementBlockAst body) 9 | : base(extent, label, condition, body) 10 | { 11 | } 12 | 13 | public override string ToString() 14 | { 15 | return string.Format("do {{ ... }} until {0}", this.Condition); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/DoWhileStatementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public class DoWhileStatementAst : LoopStatementAst 7 | { 8 | public DoWhileStatementAst(IScriptExtent extent, string label, PipelineBaseAst condition, StatementBlockAst body) 9 | : base(extent, label, condition, body) 10 | { 11 | } 12 | 13 | public override string ToString() 14 | { 15 | return string.Format("do {{ ... }} while {0}", this.Condition); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/ExpressionAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public abstract class ExpressionAst : CommandElementAst 7 | { 8 | protected ExpressionAst(IScriptExtent extent) : base(extent) 9 | { 10 | } 11 | 12 | public virtual Type StaticType { get { return typeof(object); } } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/ForEachFlags.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | [Flags] 7 | public enum ForEachFlags 8 | { 9 | None = 0, 10 | Parallel = 1, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/IScriptExtent.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public interface IScriptExtent 7 | { 8 | int EndColumnNumber { get; } 9 | int EndLineNumber { get; } 10 | int EndOffset { get; } 11 | IScriptPosition EndScriptPosition { get; } 12 | string File { get; } 13 | int StartColumnNumber { get; } 14 | int StartLineNumber { get; } 15 | int StartOffset { get; } 16 | IScriptPosition StartScriptPosition { get; } 17 | 18 | /// 19 | /// Text of the root element. 20 | /// 21 | string Text { get; } 22 | 23 | /// 24 | /// Text of the whole subtree. 25 | /// 26 | string FullText { get; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/IScriptPosition.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public interface IScriptPosition 7 | { 8 | int ColumnNumber { get; } 9 | string File { get; } 10 | string Line { get; } 11 | int LineNumber { get; } 12 | int Offset { get; } 13 | 14 | string GetFullScript(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/ITypeName.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public interface ITypeName 7 | { 8 | string AssemblyName { get; } 9 | IScriptExtent Extent { get; } 10 | string FullName { get; } 11 | bool IsArray { get; } 12 | bool IsGeneric { get; } 13 | string Name { get; } 14 | 15 | Type GetReflectionAttributeType(); 16 | Type GetReflectionType(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/MergingRedirectionAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace System.Management.Automation.Language 6 | { 7 | public class MergingRedirectionAst : RedirectionAst 8 | { 9 | public MergingRedirectionAst(IScriptExtent extent, RedirectionStream from, RedirectionStream to) 10 | : base(extent, from) 11 | { 12 | } 13 | 14 | public RedirectionStream ToStream { get { throw new NotImplementedException(this.ToString()); } } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/PipelineBaseAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation.Language 3 | { 4 | public abstract class PipelineBaseAst : StatementAst 5 | { 6 | protected PipelineBaseAst(IScriptExtent extent) : base(extent) { } 7 | 8 | public virtual ExpressionAst GetPureExpression() { throw new NotImplementedException(this.ToString()); } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/RedirectionAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Collections.Generic; 3 | using System.Management.Automation; 4 | 5 | namespace System.Management.Automation.Language 6 | { 7 | public abstract class RedirectionAst : Ast 8 | { 9 | protected RedirectionAst(IScriptExtent extent, RedirectionStream from) 10 | : base(extent) 11 | { 12 | this.FromStream = from; 13 | } 14 | 15 | public RedirectionStream FromStream { get; private set; } 16 | 17 | public override string ToString() 18 | { 19 | return string.Format("< {0}", Enum.GetName(typeof(RedirectionStream), this.FromStream)); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/RedirectionStream.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public enum RedirectionStream 7 | { 8 | All = 0, 9 | Output = 1, 10 | Error = 2, 11 | Warning = 3, 12 | Verbose = 4, 13 | Debug = 5, 14 | Host = 6, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/StatementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation.Language 3 | { 4 | public abstract class StatementAst : Ast 5 | { 6 | protected StatementAst(IScriptExtent extent) : base(extent) 7 | { 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/StringConstantType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public enum StringConstantType 7 | { 8 | SingleQuoted = 0, 9 | SingleQuotedHereString = 1, 10 | DoubleQuoted = 2, 11 | DoubleQuotedHereString = 3, 12 | BareWord = 4, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/SwitchFlags.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | [Flags] 7 | public enum SwitchFlags 8 | { 9 | // TODO: rewrite in hex. 10 | None = 0, 11 | File = 1, 12 | Regex = 2, 13 | Wildcard = 4, 14 | Exact = 8, 15 | CaseSensitive = 16, 16 | Parallel = 32, 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/ThrowStatementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Management.Automation; 5 | 6 | namespace System.Management.Automation.Language 7 | { 8 | public class ThrowStatementAst : StatementAst 9 | { 10 | public ThrowStatementAst(IScriptExtent extent, PipelineBaseAst pipeline) 11 | : base(extent) 12 | { 13 | this.Pipeline = pipeline; 14 | } 15 | 16 | public bool IsRethrow { get { throw new NotImplementedException(this.ToString()); } } 17 | public PipelineBaseAst Pipeline { get; private set; } 18 | 19 | public override string ToString() 20 | { 21 | return string.Format("throw {0}", this.Pipeline); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/TypeConstraintAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace System.Management.Automation.Language 6 | { 7 | public class TypeConstraintAst : AttributeBaseAst 8 | { 9 | public TypeConstraintAst(IScriptExtent extent, ITypeName typeName) 10 | : base(extent, typeName) 11 | { 12 | } 13 | 14 | public TypeConstraintAst(IScriptExtent extent, Type type) 15 | : base(extent, /* TODO: */ null) 16 | { 17 | throw new NotImplementedException(this.ToString()); 18 | } 19 | 20 | public override string ToString() 21 | { 22 | return this.TypeName.ToString(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/TypeExpressionAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Management.Automation; 5 | 6 | namespace System.Management.Automation.Language 7 | { 8 | public class TypeExpressionAst : ExpressionAst 9 | { 10 | public TypeExpressionAst(IScriptExtent extent, ITypeName typeName) 11 | : base(extent) 12 | { 13 | this.TypeName = typeName; 14 | } 15 | 16 | public override Type StaticType { get { throw new NotImplementedException(this.ToString()); } } 17 | public ITypeName TypeName { get; private set; } 18 | 19 | public override string ToString() 20 | { 21 | return this.TypeName.ToString(); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Language/WhileStatementAst.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Language 5 | { 6 | public class WhileStatementAst : LoopStatementAst 7 | { 8 | public WhileStatementAst(IScriptExtent extent, string label, PipelineBaseAst condition, StatementBlockAst body) 9 | : base(extent, label, condition, body) 10 | { 11 | } 12 | 13 | public override string ToString() 14 | { 15 | return string.Format("while {0} { ... }", this.Condition.ToString()); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/LoopFlowException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public abstract class LoopFlowException : FlowControlException 6 | { 7 | public string Label { get; private set; } 8 | 9 | internal LoopFlowException(string label) 10 | { 11 | Label = label ?? ""; 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ModuleAccessMode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public enum ModuleAccessMode 6 | { 7 | ReadWrite, 8 | ReadOnly, 9 | Constant 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ModuleType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public enum ModuleType 6 | { 7 | Binary, 8 | Cim, 9 | Manifest, 10 | Script, 11 | Workflow 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/OutputTypeAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Linq; 4 | using System.Management.Automation.Internal; 5 | 6 | namespace System.Management.Automation 7 | { 8 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] 9 | public sealed class OutputTypeAttribute : CmdletMetadataAttribute 10 | { 11 | public OutputTypeAttribute(params string[] type) 12 | { 13 | } 14 | 15 | public OutputTypeAttribute(params Type[] type) 16 | { 17 | Type = type.Select(t => new PSTypeName(t)).ToArray(); 18 | } 19 | 20 | public string[] ParameterSetName { get; set; } 21 | public string ProviderCmdlet { get; set; } 22 | public PSTypeName[] Type { get; private set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSCredentialTypes.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | [Flags] 7 | public enum PSCredentialTypes 8 | { 9 | Generic = 1, 10 | Domain = 2, 11 | Default = 3, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSCredentialUIOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | [Flags] 7 | public enum PSCredentialUIOptions 8 | { 9 | None = 0, 10 | Default = 1, 11 | ValidateUserNameSyntax = 1, 12 | AlwaysPrompt = 2, 13 | ReadOnlyUserName = 3, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSCustomObject.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | public class PSCustomObject 5 | { 6 | internal static PSCustomObject Instance; 7 | 8 | static PSCustomObject() 9 | { 10 | Instance = new PSCustomObject(); 11 | } 12 | 13 | private PSCustomObject() 14 | { 15 | } 16 | 17 | public override string ToString() 18 | { 19 | return string.Empty; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSInstaller.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Collections; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public abstract class PSInstaller // : Installer 7 | { 8 | protected PSInstaller() 9 | { 10 | 11 | } 12 | 13 | public virtual void Install(IDictionary stateSaver) 14 | { 15 | // Install(stateSaver); 16 | } 17 | 18 | public virtual void Rollback(IDictionary savedState) 19 | { 20 | // Rollback(savedState); 21 | } 22 | 23 | public virtual void Uninstall(IDictionary savedState) 24 | { 25 | // Uninstall(savedState); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSInvocationState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public enum PSInvocationState 9 | { 10 | NotStarted, 11 | Running, 12 | Stopping, 13 | Stopped, 14 | Completed, 15 | Failed 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSInvocationStateChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public sealed class PSInvocationStateChangedEventArgs : EventArgs 9 | { 10 | public PSInvocationStateInfo InvocationStateInfo 11 | { 12 | get 13 | { 14 | throw new NotImplementedException(); 15 | } 16 | } 17 | 18 | internal PSInvocationStateChangedEventArgs(PSInvocationStateInfo psStateInfo) 19 | { 20 | throw new NotImplementedException(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSLanguageMode.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public enum PSLanguageMode 9 | { 10 | FullLanguage, 11 | RestrictedLanguage, 12 | NoLanguage 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSMemberTypes.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | [Flags] 5 | public enum PSMemberTypes 6 | { 7 | AliasProperty = 1, 8 | CodeProperty = 2, 9 | Property = 4, 10 | NoteProperty = 8, 11 | ScriptProperty = 16, 12 | Properties = 31, 13 | PropertySet = 32, 14 | Method = 64, 15 | CodeMethod = 128, 16 | ScriptMethod = 256, 17 | Methods = 448, 18 | ParameterizedProperty = 512, 19 | MemberSet = 1024, 20 | All = 2047, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSObjectTypeDescriptionProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.ComponentModel; 6 | 7 | namespace System.Management.Automation 8 | { 9 | public class PSObjectTypeDescriptionProvider : TypeDescriptionProvider 10 | { 11 | //public PSObjectTypeDescriptionProvider(); 12 | 13 | //public event EventHandler GettingValueException; 14 | //public event EventHandler SettingValueException; 15 | 16 | //public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) { throw new NotImplementedException(); } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSPropertyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public abstract class PSPropertyInfo : PSMemberInfo 9 | { 10 | protected PSPropertyInfo() 11 | { 12 | } 13 | 14 | public abstract bool IsGettable { get; } 15 | public abstract bool IsSettable { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSSnapIn.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Collections.Generic; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public abstract class PSSnapIn : PSSnapInInstaller 7 | { 8 | protected PSSnapIn() 9 | { 10 | 11 | } 12 | 13 | public virtual string[] Formats { get { return new string[]{}; } } 14 | public virtual string[] Types { get { return new string[]{}; } } 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSSnapInInstaller.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Collections.Generic; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public abstract class PSSnapInInstaller : PSInstaller 7 | { 8 | protected PSSnapInInstaller() 9 | { 10 | 11 | } 12 | 13 | public abstract string Description { get; } 14 | public virtual string DescriptionResource { get { return null; } } 15 | public abstract string Name { get; } 16 | public abstract string Vendor { get; } 17 | public virtual string VendorResource { get { return null; } } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSTypeConverter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | 5 | namespace System.Management.Automation 6 | { 7 | /// 8 | /// Abstract class for implemeting specific type converters for various Pash types. 9 | /// 10 | public abstract class PSTypeConverter 11 | { 12 | protected PSTypeConverter() 13 | { 14 | } 15 | 16 | public abstract bool CanConvertFrom(object sourceValue, Type destinationType); 17 | public abstract object ConvertFrom(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase); 18 | 19 | public abstract bool CanConvertTo(object sourceValue, Type destinationType); 20 | public abstract object ConvertTo(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase); 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PSTypeName.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public class PSTypeName 7 | { 8 | public PSTypeName(string name) 9 | { 10 | Name = name; 11 | } 12 | 13 | public PSTypeName(Type type) 14 | { 15 | Type = type; 16 | Name = type.FullName; 17 | } 18 | 19 | //public PSTypeName(TypeDefinitionAst ast) 20 | //{ 21 | //} 22 | 23 | //public PSTypeName(ITypeName typeName) 24 | //{ 25 | //} 26 | 27 | public string Name { get; private set; } 28 | public Type Type { get; private set; } 29 | //public TypeDefinitionAst TypeDefinitionAst { get; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/PathInfoStack.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace System.Management.Automation 6 | { 7 | public sealed class PathInfoStack : Stack 8 | { 9 | public string Name { get { throw new NotImplementedException(); } } 10 | 11 | // internals 12 | //internal PathInfoStack(string stackName, System.Collections.Generic.Stack locationStack); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ProgressRecordType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public enum ProgressRecordType 9 | { 10 | Processing = 0, 11 | Completed = 1, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/CmdletProviderAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Provider 7 | { 8 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] 9 | public sealed class CmdletProviderAttribute : Attribute 10 | { 11 | public CmdletProviderAttribute(string providerName, ProviderCapabilities providerCapabilities) 12 | { 13 | ProviderName = providerName; 14 | ProviderCapabilities = providerCapabilities; 15 | } 16 | 17 | public ProviderCapabilities ProviderCapabilities { get; private set; } 18 | public string ProviderName { get; private set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/IContentCmdletProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Provider 7 | { 8 | public interface IContentCmdletProvider 9 | { 10 | void ClearContent(string path); 11 | object ClearContentDynamicParameters(string path); 12 | IContentReader GetContentReader(string path); 13 | object GetContentReaderDynamicParameters(string path); 14 | IContentWriter GetContentWriter(string path); 15 | object GetContentWriterDynamicParameters(string path); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/IContentReader.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Collections; 6 | using System.IO; 7 | 8 | namespace System.Management.Automation.Provider 9 | { 10 | public interface IContentReader : IDisposable 11 | { 12 | void Close(); 13 | IList Read(long readCount); 14 | void Seek(long offset, SeekOrigin origin); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/IContentWriter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Collections; 6 | using System.IO; 7 | 8 | namespace System.Management.Automation.Provider 9 | { 10 | public interface IContentWriter : IDisposable 11 | { 12 | void Close(); 13 | void Seek(long offset, SeekOrigin origin); 14 | IList Write(IList content); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/IPropertyCmdletProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.ObjectModel; 4 | using System.Management.Automation; 5 | 6 | namespace System.Management.Automation.Provider 7 | { 8 | public interface IPropertyCmdletProvider 9 | { 10 | void ClearProperty(string path, Collection propertyToClear); 11 | object ClearPropertyDynamicParameters(string path, Collection propertyToClear); 12 | void GetProperty(string path, Collection providerSpecificPickList); 13 | object GetPropertyDynamicParameters(string path, Collection providerSpecificPickList); 14 | void SetProperty(string path, PSObject propertyValue); 15 | object SetPropertyDynamicParameters(string path, PSObject propertyValue); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/ISecurityDescriptorCmdletProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Security.AccessControl; 4 | 5 | namespace System.Management.Automation.Provider 6 | { 7 | public interface ISecurityDescriptorCmdletProvider 8 | { 9 | void GetSecurityDescriptor(string path, AccessControlSections includeSections); 10 | ObjectSecurity NewSecurityDescriptorFromPath(string path, AccessControlSections includeSections); 11 | ObjectSecurity NewSecurityDescriptorOfType(string type, AccessControlSections includeSections); 12 | void SetSecurityDescriptor(string path, ObjectSecurity securityDescriptor); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Provider/ProviderCapabilities.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Provider 7 | { 8 | [Flags] 9 | public enum ProviderCapabilities 10 | { 11 | None = 0, 12 | Include = 1, 13 | Exclude = 2, 14 | Filter = 4, 15 | ExpandWildcards = 8, 16 | ShouldProcess = 16, 17 | Credentials = 32, 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/RemoteStreamOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | [Flags] 9 | public enum RemoteStreamOptions 10 | { 11 | AddInvocationInfoToErrorRecord = 1, 12 | AddInvocationInfoToWarningRecord = 2, 13 | AddInvocationInfoToDebugRecord = 4, 14 | AddInvocationInfoToVerboseRecord = 8, 15 | AddInvocationInfo = 15 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ReturnContainers.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | public enum ReturnContainers 5 | { 6 | ReturnMatchingContainers = 0, 7 | ReturnAllContainers = 1, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/RunspacePoolStateInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Management.Automation.Runspaces; 6 | 7 | namespace System.Management.Automation 8 | { 9 | public sealed class RunspacePoolStateInfo 10 | { 11 | public RunspacePoolState State 12 | { 13 | get 14 | { 15 | throw new NotImplementedException(); 16 | } 17 | } 18 | public Exception Reason 19 | { 20 | get 21 | { 22 | throw new NotImplementedException(); 23 | } 24 | } 25 | public RunspacePoolStateInfo(RunspacePoolState state, Exception reason) 26 | { 27 | throw new NotImplementedException(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/AssemblyConfigurationEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace System.Management.Automation.Runspaces 3 | { 4 | public sealed class AssemblyConfigurationEntry : RunspaceConfigurationEntry 5 | { 6 | private string filename; 7 | 8 | public string FileName 9 | { 10 | get 11 | { 12 | return this.filename; 13 | } 14 | } 15 | 16 | public AssemblyConfigurationEntry(string name, string fileName) 17 | : base(name) 18 | { 19 | this.filename = fileName; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/AuthenticationMechanism.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public enum AuthenticationMechanism 9 | { 10 | Default, 11 | Basic, 12 | Negotiate, 13 | NegotiateWithImplicitCredential, 14 | Credssp, 15 | Digest, 16 | Kerberos 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/CmdletConfigurationEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation.Runspaces 4 | { 5 | public sealed class CmdletConfigurationEntry : RunspaceConfigurationEntry 6 | { 7 | private Type imptype; 8 | private string helpFileName; 9 | 10 | public Type ImplementingType 11 | { 12 | get 13 | { 14 | return this.imptype; 15 | } 16 | } 17 | public string HelpFileName 18 | { 19 | get 20 | { 21 | return this.helpFileName; 22 | } 23 | } 24 | 25 | public CmdletConfigurationEntry(string name, Type implementingType, string helpFileName) 26 | : base(name) 27 | { 28 | this.imptype = implementingType; 29 | this.helpFileName = helpFileName; 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/CommandCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.ObjectModel; 4 | 5 | namespace System.Management.Automation.Runspaces 6 | { 7 | public sealed class CommandCollection : Collection 8 | { 9 | public void Add(string command) 10 | { 11 | Add(new Command(command)); 12 | } 13 | 14 | public void AddScript(string scriptContents) 15 | { 16 | AddScript(scriptContents, false); //per default a script runs in global scope 17 | } 18 | 19 | public void AddScript(string scriptContents, bool useLocalScope) 20 | { 21 | Add(new Command(scriptContents, true, useLocalScope)); 22 | } 23 | 24 | // internals 25 | internal CommandCollection() 26 | { 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/CommandParameterCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.ObjectModel; 4 | 5 | namespace System.Management.Automation.Runspaces 6 | { 7 | public sealed class CommandParameterCollection : Collection 8 | { 9 | // internals 10 | internal CommandParameterCollection() 11 | { 12 | } 13 | 14 | internal CommandParameterCollection(CommandParameterCollection parameters) 15 | { 16 | foreach (var param in parameters) 17 | { 18 | Add(param); 19 | } 20 | } 21 | 22 | public void Add(string name) 23 | { 24 | Add(new CommandParameter(name)); 25 | } 26 | 27 | public void Add(string name, object value) 28 | { 29 | Add(new CommandParameter(name, value)); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/ConstrainedSessionStateEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public abstract class ConstrainedSessionStateEntry : InitialSessionStateEntry 9 | { 10 | private SessionStateEntryVisibility visibility; 11 | 12 | public SessionStateEntryVisibility Visibility 13 | { 14 | get 15 | { 16 | return this.visibility; 17 | } 18 | set 19 | { 20 | this.visibility = value; 21 | } 22 | } 23 | 24 | protected ConstrainedSessionStateEntry(string name, SessionStateEntryVisibility visibility) 25 | : base(name) 26 | { 27 | this.visibility = visibility; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/FormatConfigurationEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public sealed class FormatConfigurationEntry : RunspaceConfigurationEntry 7 | { 8 | private string filename; 9 | 10 | public string FileName 11 | { 12 | get 13 | { 14 | return this.filename; 15 | } 16 | } 17 | 18 | public FormatConfigurationEntry(string name, string fileName) 19 | : base(name) 20 | { 21 | this.filename = fileName; 22 | } 23 | 24 | public FormatConfigurationEntry(string fileName) 25 | : base(fileName) 26 | { 27 | this.filename = fileName; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/FormatTable.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public sealed class FormatTable 9 | { 10 | public FormatTable(IEnumerable formatFiles) 11 | { 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/PSSnapInException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | [Serializable] 9 | public class PSSnapInException : RuntimeException 10 | { 11 | 12 | public PSSnapInException() 13 | { 14 | } 15 | 16 | public PSSnapInException(string message) 17 | : base(message) 18 | { 19 | } 20 | 21 | public PSSnapInException(string message, Exception innerException) 22 | : base(message, innerException) 23 | { 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/PSThreadOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public enum PSThreadOptions 9 | { 10 | Default, 11 | UseNewThread, 12 | ReuseThread, 13 | UseCurrentThread 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/PipelineResultTypes.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | [Flags] 7 | public enum PipelineResultTypes 8 | { 9 | None = 0, 10 | Output = 1, 11 | Error = 2, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/PipelineState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public enum PipelineState 7 | { 8 | NotStarted = 0, 9 | Running = 1, 10 | Stopping = 2, 11 | Stopped = 3, 12 | Completed = 4, 13 | Failed = 5, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/PipelineStateEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public sealed class PipelineStateEventArgs : EventArgs 7 | { 8 | public PipelineStateEventArgs(PipelineStateInfo state) 9 | { 10 | PipelineStateInfo = state; 11 | } 12 | 13 | public PipelineStateInfo PipelineStateInfo { get; private set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/PipelineWriter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Threading; 4 | 5 | namespace System.Management.Automation.Runspaces 6 | { 7 | public abstract class PipelineWriter 8 | { 9 | protected PipelineWriter() { } 10 | 11 | public abstract int Count { get; } 12 | public abstract bool IsOpen { get; } 13 | public abstract int MaxCapacity { get; } 14 | public abstract WaitHandle WaitHandle { get; } 15 | 16 | public abstract void Close(); 17 | public abstract void Flush(); 18 | public abstract int Write(object obj); 19 | public abstract int Write(object obj, bool enumerateCollection); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/ProviderConfigurationEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation.Runspaces 3 | { 4 | public sealed class ProviderConfigurationEntry : RunspaceConfigurationEntry 5 | { 6 | public ProviderConfigurationEntry(string name, Type implementingType, string helpFileName) 7 | : base(name) 8 | { 9 | ImplementingType = implementingType; 10 | HelpFileName = helpFileName; 11 | } 12 | 13 | internal ProviderConfigurationEntry(string name, Type implementingType, string helpFileName, PSSnapInInfo psSnapinInfo) 14 | : base(name, psSnapinInfo) 15 | { 16 | ImplementingType = implementingType; 17 | HelpFileName = helpFileName; 18 | } 19 | 20 | public string HelpFileName { get; private set; } 21 | public Type ImplementingType { get; private set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/RunspacePoolState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public enum RunspacePoolState 9 | { 10 | BeforeOpen, 11 | Opening, 12 | Opened, 13 | Closed, 14 | Closing, 15 | Broken 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/RunspacePoolStateChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public sealed class RunspacePoolStateChangedEventArgs : EventArgs 9 | { 10 | public RunspacePoolStateInfo RunspacePoolStateInfo 11 | { 12 | get 13 | { 14 | throw new NotImplementedException(); 15 | } 16 | } 17 | 18 | internal RunspacePoolStateChangedEventArgs(RunspacePoolState state) 19 | { 20 | throw new NotImplementedException(); 21 | } 22 | 23 | internal RunspacePoolStateChangedEventArgs(RunspacePoolStateInfo stateInfo) 24 | { 25 | throw new NotImplementedException(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/RunspaceStateEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public sealed class RunspaceStateEventArgs : EventArgs 7 | { 8 | //public RunspaceStateInfo RunspaceStateInfo { get; } 9 | 10 | // internals 11 | //internal RunspaceStateEventArgs(System.Management.Automation.Runspaces.RunspaceStateInfo runspaceStateInfo); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/RunspaceStateInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public sealed class RunspaceStateInfo 7 | { 8 | //public Exception Reason { get; } 9 | //public RunspaceState State { get; } 10 | 11 | // internals 12 | //internal System.Management.Automation.Runspaces.RunspaceStateInfo Clone(); 13 | //internal RunspaceStateInfo(System.Management.Automation.Runspaces.RunspaceStateInfo runspaceStateInfo); 14 | //internal RunspaceStateInfo(System.Management.Automation.Runspaces.RunspaceState state, System.Exception reason); 15 | //internal RunspaceStateInfo(System.Management.Automation.Runspaces.RunspaceState state); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/ScriptConfigurationEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public sealed class ScriptConfigurationEntry : RunspaceConfigurationEntry 7 | { 8 | public ScriptConfigurationEntry(string name, string definition) 9 | : base(name) 10 | { 11 | Definition = definition; 12 | } 13 | 14 | public string Definition { get; private set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/SessionStateApplicationEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public sealed class SessionStateApplicationEntry : SessionStateCommandEntry 9 | { 10 | private string path; 11 | 12 | public string Path 13 | { 14 | get 15 | { 16 | return this.path; 17 | } 18 | } 19 | 20 | public SessionStateApplicationEntry(string path) 21 | : base(path, SessionStateEntryVisibility.Public) 22 | { 23 | this.path = path; 24 | this.commandType = CommandTypes.Application; 25 | } 26 | 27 | public override InitialSessionStateEntry Clone() 28 | { 29 | throw new NotImplementedException(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/SessionStateCommandEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public abstract class SessionStateCommandEntry : ConstrainedSessionStateEntry 9 | { 10 | internal CommandTypes commandType; 11 | 12 | public CommandTypes CommandType 13 | { 14 | get 15 | { 16 | return commandType; 17 | } 18 | } 19 | 20 | protected SessionStateCommandEntry(string name) 21 | : base(name, SessionStateEntryVisibility.Public) 22 | { 23 | 24 | } 25 | 26 | protected internal SessionStateCommandEntry(string name, SessionStateEntryVisibility visibility) 27 | : base(name, visibility) 28 | { 29 | } 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/SessionStateScriptEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public sealed class SessionStateScriptEntry : SessionStateCommandEntry 9 | { 10 | private string path; 11 | 12 | public string Path 13 | { 14 | get 15 | { 16 | return this.path; 17 | } 18 | } 19 | 20 | public SessionStateScriptEntry(string path) 21 | : base(path, SessionStateEntryVisibility.Public) 22 | { 23 | this.path = path; 24 | this.commandType = CommandTypes.ExternalScript; 25 | } 26 | 27 | public override InitialSessionStateEntry Clone() 28 | { 29 | throw new NotImplementedException(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/SessionStateTypeEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public sealed class SessionStateTypeEntry : InitialSessionStateEntry 9 | { 10 | public SessionStateTypeEntry(string fileName) 11 | : base("*") 12 | { 13 | throw new NotImplementedException(); 14 | } 15 | 16 | public SessionStateTypeEntry(TypeTable typeTable) 17 | : base("*") 18 | { 19 | throw new NotImplementedException(); 20 | } 21 | 22 | public override InitialSessionStateEntry Clone() 23 | { 24 | throw new NotImplementedException(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/TypeConfigurationEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation.Runspaces 5 | { 6 | public sealed class TypeConfigurationEntry : RunspaceConfigurationEntry 7 | { 8 | private string filename; 9 | 10 | public string FileName 11 | { 12 | get 13 | { 14 | return this.filename; 15 | } 16 | } 17 | 18 | public TypeConfigurationEntry(string name, string fileName) 19 | : base(name) 20 | { 21 | this.filename = fileName; 22 | } 23 | 24 | public TypeConfigurationEntry(string fileName) 25 | : base(fileName) 26 | { 27 | this.filename = fileName; 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Source/System.Management/Automation/Runspaces/TypeTable.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation.Runspaces 7 | { 8 | public sealed class TypeTable 9 | { 10 | public TypeTable(IEnumerable typeFiles) 11 | { 12 | throw new NotImplementedException(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ScopedItemOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | [Flags] 7 | public enum ScopedItemOptions 8 | { 9 | None = 0, 10 | ReadOnly = 1, 11 | Constant = 2, 12 | Private = 4, 13 | AllScope = 8, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/SessionCapabilities.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | [Flags] 9 | public enum SessionCapabilities 10 | { 11 | RemoteServer = 1 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/SessionStateCategory.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace System.Management.Automation 3 | { 4 | public enum SessionStateCategory 5 | { 6 | Variable, 7 | Alias, 8 | Function, 9 | Filter, 10 | Drive, 11 | CmdletProvider, 12 | Cmdlet, 13 | Module // specification says that this shouldn't be here. but we need it here, so nevermind 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/SessionStateEntryVisibility.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public enum SessionStateEntryVisibility 9 | { 10 | Public, 11 | Private 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/SettingValueExceptionEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public class SettingValueExceptionEventArgs : EventArgs 9 | { 10 | public Exception Exception { get; private set; } 11 | public bool ShouldThrow { get; set; } 12 | 13 | internal SettingValueExceptionEventArgs(System.Exception exception) { Exception = exception; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ShouldProcessReason.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | [Flags] 7 | public enum ShouldProcessReason 8 | { 9 | None = 0, 10 | WhatIf = 1, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/Signature.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | // Todo: Needs an implementation 4 | 5 | using System; 6 | using System.ComponentModel; 7 | using System.IO; 8 | using System.Security.Cryptography.X509Certificates; 9 | 10 | namespace System.Management.Automation 11 | { 12 | public sealed class Signature 13 | { 14 | public string Path { get; private set; } 15 | 16 | public X509Certificate2 SignerCertificate { get; private set; } 17 | 18 | public SignatureStatus Status { get; private set; } 19 | 20 | public string StatusMessage { get; private set; } 21 | 22 | public X509Certificate2 TimeStamperCertificate { get; private set; } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/SignatureStatus.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | 5 | namespace System.Management.Automation 6 | { 7 | /// 8 | /// The status of a given Pash object's signature. 9 | /// 10 | public enum SignatureStatus 11 | { 12 | Valid, 13 | UnknownError, 14 | NotSigned, 15 | HashMismatch, 16 | NotTrusted, 17 | NotSupportedFileFormat 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/SigningOption.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | 5 | namespace System.Management.Automation 6 | { 7 | /// 8 | /// Options for accepting signed Pash objects. 9 | /// 10 | public enum SigningOption 11 | { 12 | AddFullCertificateChain = 1, 13 | AddFullCertificateChainExceptRoot = 2, 14 | AddOnlyCertificate = 0, 15 | Default = 2 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/ValidateArgumentsAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation.Internal; 4 | 5 | namespace System.Management.Automation 6 | { 7 | /// 8 | /// Abstract class that validates arguements from a parameter. 9 | /// 10 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] 11 | public abstract class ValidateArgumentsAttribute : CmdletMetadataAttribute 12 | { 13 | protected ValidateArgumentsAttribute() { } 14 | 15 | protected abstract void Validate(object arguments, EngineIntrinsics engineIntrinsics); 16 | 17 | // internals 18 | internal void InternalValidate(object o, EngineIntrinsics engineIntrinsics) 19 | { 20 | Validate(o, engineIntrinsics); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/VerboseRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public sealed class VerboseRecord : InformationalRecord 9 | { 10 | internal VerboseRecord(string message) 11 | : base(message) 12 | { 13 | } 14 | internal VerboseRecord(PSObject psObject) 15 | : base(psObject) 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/VerbsCommunications.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace System.Management.Automation 4 | { 5 | /// 6 | /// Verbs common to cmdlets which deal with communication. 7 | /// 8 | public static class VerbsCommunications 9 | { 10 | public const string Connect = "Connect"; 11 | public const string Disconnect = "Disconnect"; 12 | public const string Read = "Read"; 13 | public const string Receive = "Receive"; 14 | public const string Send = "Send"; 15 | public const string Write = "Write"; 16 | } 17 | } -------------------------------------------------------------------------------- /Source/System.Management/Automation/VerbsDiagnostic.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace System.Management.Automation 4 | { 5 | /// 6 | /// Verbs used to discribe diagnostic functions. 7 | /// 8 | public static class VerbsDiagnostic 9 | { 10 | public const string Debug = "Debug"; 11 | public const string Measure = "Measure"; 12 | public const string Ping = "Ping"; 13 | public const string Resolve = "Resolve"; 14 | public const string Test = "Test"; 15 | public const string Trace = "Trace"; 16 | } 17 | } -------------------------------------------------------------------------------- /Source/System.Management/Automation/VerbsOther.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace System.Management.Automation 4 | { 5 | /// 6 | /// Other verbs not used anywhere else. 7 | /// 8 | public static class VerbsOther 9 | { 10 | public const string Use = "Use"; 11 | } 12 | } -------------------------------------------------------------------------------- /Source/System.Management/Automation/VerbsSecurity.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace System.Management.Automation 4 | { 5 | /// 6 | /// Verbs typically used to discribe security cmdlets. 7 | /// 8 | public static class VerbsSecurity 9 | { 10 | public const string Block = "Block"; 11 | public const string Grant = "Grant"; 12 | public const string Revoke = "Revoke"; 13 | public const string Unblock = "Unblock"; 14 | } 15 | } -------------------------------------------------------------------------------- /Source/System.Management/Automation/WarningRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace System.Management.Automation 7 | { 8 | public sealed class WarningRecord : InformationalRecord 9 | { 10 | internal WarningRecord(string message) 11 | : base(message) 12 | { 13 | } 14 | internal WarningRecord(PSObject psObject) 15 | : base(psObject) 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/WildcardOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | [Flags] 7 | public enum WildcardOptions 8 | { 9 | None = 0, 10 | Compiled = 1, 11 | IgnoreCase = 2, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/WildcardPatternException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Runtime.Serialization; 5 | 6 | namespace System.Management.Automation 7 | { 8 | [Serializable] 9 | public class WildcardPatternException : RuntimeException 10 | { 11 | public WildcardPatternException(string message) 12 | : base(message) 13 | { 14 | 15 | } 16 | 17 | protected WildcardPatternException(SerializationInfo info, StreamingContext context) 18 | : base(info, context) 19 | { 20 | 21 | } 22 | 23 | public WildcardPatternException(string message, Exception innerException) 24 | : base(message, innerException) 25 | { 26 | 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /Source/System.Management/Automation/WorkflowInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace System.Management.Automation 5 | { 6 | public class WorkflowInfo : FunctionInfo 7 | { 8 | public WorkflowInfo( 9 | string name, 10 | string definition, 11 | ScriptBlock workflow, 12 | string xamlDefinition, 13 | WorkflowInfo[] workflowsCalled) 14 | : base(name, workflow, null) 15 | { 16 | } 17 | 18 | public WorkflowInfo( 19 | string name, 20 | string definition, 21 | ScriptBlock workflow, 22 | string xamlDefinition, 23 | WorkflowInfo[] workflowsCalled, 24 | PSModuleInfo module) 25 | : base (name, workflow, null) 26 | { 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Source/System.Management/Extensions/DictionaryExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Extensions.Dictionary 5 | { 6 | static class _ 7 | { 8 | public static void AddRange(this Dictionary source, Dictionary collection) 9 | { 10 | if (collection == null) 11 | { 12 | return; 13 | } 14 | foreach (var item in collection) 15 | { 16 | source[item.Key] = item.Value; 17 | } 18 | } 19 | 20 | public static void ReplaceContents(this Dictionary source, Dictionary collection) 21 | { 22 | source.Clear(); 23 | source.AddRange(collection); 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /Source/System.Management/Extensions/QueueExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace Extensions.Queue 6 | { 7 | static class _ 8 | { 9 | public static void EnqueueAll(this Queue @this, IEnumerable items) 10 | { 11 | foreach (var item in items) @this.Enqueue(item); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Extensions/TypeExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace Extensions.Types 5 | { 6 | static class TypeExtensions 7 | { 8 | public static string FriendlyName(this Type type) 9 | { 10 | if (type == null) 11 | { 12 | return string.Empty; 13 | } 14 | 15 | switch (Type.GetTypeCode(type)) 16 | { 17 | case TypeCode.Int32: 18 | return "int"; 19 | case TypeCode.String: 20 | return "string"; 21 | } 22 | 23 | return type.FullName; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/AliasProviderDynamicParameters.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class AliasProviderDynamicParameters 7 | { 8 | private ScopedItemOptions _options; 9 | private bool _optionsSet; 10 | 11 | public AliasProviderDynamicParameters() 12 | { 13 | 14 | } 15 | 16 | [Parameter] 17 | public ScopedItemOptions Options 18 | { 19 | get 20 | { 21 | return _options; 22 | } 23 | set 24 | { 25 | _optionsSet = true; 26 | _options = value; 27 | } 28 | } 29 | 30 | internal bool OptionsSet { get { return _optionsSet; } } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/FileSystemCmdletProviderEncoding.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace Microsoft.PowerShell.Commands 3 | { 4 | public enum FileSystemCmdletProviderEncoding 5 | { 6 | Unknown, 7 | String, 8 | Unicode, 9 | Byte, 10 | BigEndianUnicode, 11 | UTF8, 12 | UTF7, 13 | Ascii 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/FileSystemContentReaderDynamicParameters.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class FileSystemContentReaderDynamicParameters : FileSystemContentDynamicParametersBase 7 | { 8 | [Parameter] 9 | public string Delimiter { get; set; } 10 | public bool DelimiterSpecified { get; private set; } 11 | [Parameter] 12 | public SwitchParameter Wait { get; set; } 13 | 14 | public FileSystemContentReaderDynamicParameters() 15 | { 16 | Delimiter = "\n"; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/FileSystemContentWriterDynamicParameters.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | namespace Microsoft.PowerShell.Commands 3 | { 4 | public class FileSystemContentWriterDynamicParameters : FileSystemContentDynamicParametersBase 5 | { 6 | public FileSystemContentWriterDynamicParameters() 7 | { 8 | 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/FunctionProviderDynamicParameters.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class FunctionProviderDynamicParameters 7 | { 8 | private ScopedItemOptions _options; 9 | private bool _optionsSet; 10 | 11 | public FunctionProviderDynamicParameters() 12 | { 13 | 14 | } 15 | 16 | [Parameter] 17 | public ScopedItemOptions Options 18 | { 19 | get 20 | { 21 | return _options; 22 | } 23 | set 24 | { 25 | _optionsSet = true; 26 | _options = value; 27 | } 28 | } 29 | 30 | internal bool OptionsSet { get { return _optionsSet; } } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/GetHistoryCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | [Cmdlet("Get", "History")] 8 | [OutputType(typeof(HistoryInfo))] 9 | public class GetHistoryCommand : PSCmdlet 10 | { 11 | [ValidateRange(0, 0x7fff), Parameter(Position = 1)] 12 | public int Count { get; set; } 13 | 14 | [ValidateRange(1L, 0x7fffffffffffffffL), Parameter(Position = 0, ValueFromPipeline = true)] 15 | public long[] Id { get; set; } 16 | 17 | public GetHistoryCommand() 18 | { 19 | 20 | } 21 | 22 | protected override void ProcessRecord() 23 | { 24 | throw new NotImplementedException(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/HistoryInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation.Runspaces; 4 | 5 | namespace Microsoft.PowerShell.Commands 6 | { 7 | public class HistoryInfo 8 | { 9 | public string CommandLine { get; private set; } 10 | public DateTime EndExecutionTime { get; private set; } 11 | public PipelineState ExecutionStatus { get; private set; } 12 | public long Id { get; private set; } 13 | public DateTime StartExecutionTime { get; private set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/Internal/Format/FrontEndCommandBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | 5 | namespace Microsoft.PowerShell.Commands.Internal.Format 6 | { 7 | public abstract class FrontEndCommandBase : PSCmdlet, IDisposable 8 | { 9 | [Parameter(ValueFromPipeline = true)] 10 | public PSObject InputObject { get; set; } 11 | 12 | protected FrontEndCommandBase() 13 | { 14 | throw new NotImplementedException(); 15 | } 16 | 17 | #region IDisposable Members 18 | 19 | public void Dispose() 20 | { 21 | throw new NotImplementedException(); 22 | } 23 | 24 | #endregion 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/Commands/ModuleCmdletBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Microsoft.PowerShell.Commands 5 | { 6 | public class ModuleCmdletBase : PSCmdlet 7 | { 8 | /* This class has currently no work. However, the official MS specs show that this class exist. 9 | * So we just let it exist, maybe it gets some work in the future 10 | */ 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Source/System.Management/Microsoft.PowerShell/ModuleSpecification.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Collections; 6 | 7 | namespace Microsoft.PowerShell.Commands 8 | { 9 | public class ModuleSpecification 10 | { 11 | 12 | public ModuleSpecification(string moduleName) 13 | { 14 | this.Name = moduleName; 15 | } 16 | 17 | public ModuleSpecification(Hashtable moduleSpecification) 18 | { 19 | throw new NotImplementedException(); 20 | } 21 | 22 | public string Name { get; private set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/CommonCmdletParameters.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Pash.Implementation 5 | { 6 | class CommonCmdletParameters 7 | { 8 | [Alias("vb")] 9 | [Parameter] 10 | public SwitchParameter Verbose { get; set; } 11 | 12 | internal static CommandParameterDiscovery ParameterDiscovery = new CommandParameterDiscovery(typeof(CommonCmdletParameters)); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/CredentialMessages.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace System.Management.Automation 4 | { 5 | public static class CredentialMessages 6 | { 7 | public const string DefaultQueryCaption = "Pash Credential Request"; 8 | public const string DefaultQueryMessage = "Please enter the requested credential"; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/IScopedItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace Pash.Implementation 5 | { 6 | internal interface IScopedItem 7 | { 8 | string ItemName { get; } 9 | ScopedItemOptions ItemOptions { get; set; } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/IScriptBlockInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Collections.ObjectModel; 5 | using System.Linq; 6 | using System.Management.Automation.Language; 7 | using System.Management.Automation; 8 | 9 | namespace Pash.Implementation 10 | { 11 | internal interface IScriptBlockInfo 12 | { 13 | ScopeUsages ScopeUsage { get; } 14 | ScriptBlock ScriptBlock { get; } 15 | ReadOnlyCollection GetParameters(); 16 | } 17 | } 18 | 19 | 20 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/ISessionStateIntrinsics.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Pash.Implementation 5 | { 6 | internal interface ISessionStateIntrinsics where T : IScopedItem 7 | { 8 | bool SupportsScopedName { get; } 9 | 10 | T Get(string name); 11 | 12 | Dictionary GetAll(); 13 | 14 | T GetAtScope(string name, string scope); 15 | 16 | Dictionary GetAllLocal(); 17 | 18 | Dictionary Find(string name); 19 | } 20 | 21 | } 22 | 23 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/LocalRunspaceConfiguration.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System.Management.Automation.Runspaces; 3 | 4 | namespace Pash.Implementation 5 | { 6 | public class LocalRunspaceConfiguration : RunspaceConfiguration 7 | { 8 | public override string ShellId 9 | { 10 | get 11 | { 12 | return "LocalRunspaceConfiguration"; 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/PSNullVariable.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation; 5 | 6 | namespace Pash.Implementation 7 | { 8 | class PSNullVariable : PSVariable 9 | { 10 | internal PSNullVariable() 11 | : base("null", null, ScopedItemOptions.None) 12 | { 13 | } 14 | 15 | public override object Value 16 | { 17 | get 18 | { 19 | return base.Value; 20 | } 21 | set 22 | { 23 | } 24 | } 25 | 26 | public override ScopedItemOptions Options 27 | { 28 | get 29 | { 30 | return ScopedItemOptions.None; 31 | } 32 | set 33 | { 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/ReturnException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using System.Management.Automation; 4 | 5 | namespace System.Management.Pash.Implementation 6 | { 7 | public class ReturnException : FlowControlException 8 | { 9 | public object Value { get; set; } 10 | public ReturnException(object returnValue) 11 | { 12 | Value = returnValue; 13 | } 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/ScopeUsages.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Pash.Implementation 4 | { 5 | public enum ScopeUsages 6 | { 7 | CurrentScope, 8 | NewScope, 9 | NewScriptScope 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/Implementation/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | 3 | namespace System.Management.Pash.Implementation 4 | { 5 | public static partial class StringExtensions 6 | { 7 | public static String InvertCase(this String t) 8 | { 9 | Func selector = 10 | c => (char.IsUpper(c) ? char.ToLower(c) : char.ToUpper(c)).ToString(); 11 | 12 | return t.Select(selector).Aggregate(String.Concat); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/ParserIntrinsics/BacktickLineContinuationTerminal.cs: -------------------------------------------------------------------------------- 1 | using Irony.Parsing; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Pash.ParserIntrinsics 8 | { 9 | // A non-grammar terminal that controls how the parser handles line continuation. 10 | class BacktickLineContinuationTerminal : LineContinuationTerminal 11 | { 12 | //// ` (The backtick character U+0060) followed by new_line_character 13 | //// new_line_character: 14 | //// Carriage return character (U+000D) 15 | //// Line feed character (U+000A) 16 | //// Carriage return character (U+000D) followed by line feed character (U+000A) 17 | public BacktickLineContinuationTerminal() 18 | : base(typeof(BacktickLineContinuationTerminal).Name, "`") 19 | { 20 | this.LineTerminators = "\r\n"; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/ParserIntrinsics/CaseInsensitiveGrammar.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | using Irony.Parsing; 4 | 5 | namespace Pash.ParserIntrinsics 6 | { 7 | public abstract class CaseInsensitiveGrammar : Grammar 8 | { 9 | public CaseInsensitiveGrammar() 10 | : base(false) // case insensitive flag 11 | { 12 | } 13 | } 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/ParserIntrinsics/SkippedTerminal.cs: -------------------------------------------------------------------------------- 1 | using Irony.Parsing; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Pash.ParserIntrinsics 8 | { 9 | class SkippedTerminal : Terminal 10 | { 11 | public SkippedTerminal(Terminal terminalToSkip) 12 | : base("skipped " + terminalToSkip.Name, TokenCategory.Outline, TermFlags.IsNonGrammar) 13 | { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/System.Management/Pash/PashVariables.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | namespace Pash 4 | { 5 | public static class PashVariables 6 | { 7 | public const string ForceSynchronizeProcessOutput = "PASHForceSynchronizeProcessOutput"; 8 | public const string UseUnixLikeConsole = "PASHUseUnixLikeConsole"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Source/TestHost/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using System; 3 | 4 | namespace TestHost 5 | { 6 | class Program 7 | { 8 | static void Main(string[] args) 9 | { 10 | // I'd like to see this run NUnit, so we can debug these tests easilly. 11 | throw new NotImplementedException(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/TestHost/TestHelpers/TestCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System.Management.Automation; 4 | 5 | namespace TestHost.TestHelpers 6 | { 7 | [Cmdlet(VerbsLifecycle.Invoke, "Test")] 8 | public class TestCommand : PSCmdlet 9 | { 10 | [Parameter] 11 | public string Parameter { get; set; } 12 | 13 | protected override void ProcessRecord() 14 | { 15 | WriteObject(string.Format("Parameter='{0}'", Parameter)); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/TestHost/TestHelpers/TestInvokeScriptCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation; 5 | 6 | namespace TestHost.TestHelpers 7 | { 8 | [Cmdlet("Test", "InvokeScript")] 9 | public class TestInvokeScriptCommand : PSCmdlet 10 | { 11 | [Parameter] 12 | public string Script { get; set; } 13 | 14 | protected override void ProcessRecord() 15 | { 16 | InvokeCommand.InvokeScript(Script); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/TestHost/TestHelpers/TestVerboseOutputCommand.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | 3 | using System; 4 | using System.Management.Automation; 5 | 6 | namespace TestHost.TestHelpers 7 | { 8 | [Cmdlet(VerbsDiagnostic.Test, "VerboseOutput")] 9 | public sealed class TestVerboseOutputCommand : PSCmdlet 10 | { 11 | public TestVerboseOutputCommand() 12 | { 13 | Message = "test"; 14 | } 15 | 16 | [Parameter] 17 | public string Message { get; set; } 18 | 19 | protected override void ProcessRecord() 20 | { 21 | WriteVerbose("WriteVerbose: " + Message); 22 | WriteWarning("WriteWarning: " + Message); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Source/TestPSSnapIn/PashTestSnapIn.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Management.Automation; 3 | 4 | namespace TestPSSnapIn 5 | { 6 | public class PashTestSnapIn : PSSnapIn 7 | { 8 | public override string Description 9 | { 10 | get { return "Snapin to test Pash's snapin support."; } 11 | } 12 | 13 | public override string Name 14 | { 15 | get { return "PashTestSnapIn"; } 16 | } 17 | 18 | public override string Vendor 19 | { 20 | get { return "Pash"; } 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Source/TestParameterizedProperties/TestOverloadedByArgumentNumbersParameterizedProperty.vb: -------------------------------------------------------------------------------- 1 |  2 | Public Class TestOverloadedByArgumentNumbersParameterizedProperty 3 | Private _grid(5, 5) As String 4 | 5 | Public Sub New() 6 | For x As Integer = 0 To 5 7 | For y As Integer = 0 To 5 8 | _grid(x, y) = String.Format("{0}, {1}", x, y) 9 | Next 10 | Next 11 | End Sub 12 | 13 | Public Property Grid(x As Integer) As String 14 | Get 15 | Return _grid(x, 0) 16 | End Get 17 | Set(value As String) 18 | _grid(x, 0) = value 19 | End Set 20 | End Property 21 | 22 | Public Property Grid(x As Integer, y As Integer) As String 23 | Get 24 | Return _grid(x, y) 25 | End Get 26 | Set(value As String) 27 | _grid(x, y) = value 28 | End Set 29 | End Property 30 | End Class 31 | -------------------------------------------------------------------------------- /Source/TestParameterizedProperties/bin/TestParameterizedProperties.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Source/TestParameterizedProperties/bin/TestParameterizedProperties.dll -------------------------------------------------------------------------------- /Spikes/Spikes/MemberExpressionSpikes.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ 2 | using NUnit.Framework; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Spikes 10 | { 11 | [TestFixture] 12 | public class MemberExpressionSpikes 13 | { 14 | [Test] 15 | public void ATest() 16 | { 17 | object o = "abc"; 18 | string memberName = "Length"; 19 | 20 | var result = o.GetType().GetProperty(memberName).GetValue(o, null); 21 | 22 | Assert.AreEqual(3, result); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/Logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/Logo.ico -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/NUnitTests.nunit: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/agent.conf: -------------------------------------------------------------------------------- 1 | 2 | 8080 3 | . 4 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/agent.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/framework/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/framework/nunit.framework.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/framework/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/framework/nunit.mocks.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/framework/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/framework/pnunit.framework.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/launcher.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Ellipsis.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Ellipsis.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Failure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Failure.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Ignored.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Ignored.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Inconclusive.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Inconclusive.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Skipped.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Skipped.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Success.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Circles/Success.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Failure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Failure.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Ignored.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Ignored.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Inconclusive.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Inconclusive.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Skipped.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Skipped.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Success.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Classic/Success.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Failure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Failure.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Ignored.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Ignored.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Inconclusive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Inconclusive.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Skipped.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Default/Success.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Failure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Failure.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Ignored.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Ignored.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Inconclusive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Inconclusive.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/SeriousWarning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/SeriousWarning.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Skipped.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/Tree/Visual Studio/Success.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/pinned.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/pinned.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Images/unpinned.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Images/unpinned.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/NSubstitute.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/NSubstitute.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/Rhino.Mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/Rhino.Mocks.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/log4net.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit-console-runner.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit-gui-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit-gui-runner.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit.core.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit.uiexception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit.uiexception.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit.uikit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit.uikit.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/lib/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/lib/nunit.util.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit-agent-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit-agent-x86.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit-agent.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit-console-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit-console-x86.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit-console.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit-editor.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit-editor.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit-x86.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/nunit.framework.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/pnunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/pnunit-agent.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/pnunit-launcher.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/pnunit-launcher.exe -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/pnunit.framework.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/pnunit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/pnunit.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/runpnunit.bat: -------------------------------------------------------------------------------- 1 | start pnunit-agent 8080 . 2 | start pnunit-agent 8081 . 3 | pnunit-launcher test.conf 4 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/mock-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/mock-assembly.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nonamespace-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nonamespace-assembly.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit-console.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit-console.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit-editor.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit-editor.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit-gui.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit-gui.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.core.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.core.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.framework.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.framework.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.framework.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.mocks.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.mocks.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.uiexception.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.uiexception.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.uikit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.uikit.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/nunit.util.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/nunit.util.tests.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/test-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/test-assembly.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/bin/tests/test-utilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/bin/tests/test-utilities.dll -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/configEditor.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/configEditor.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/configFiles.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/configFiles.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/favicon.ico -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/files/QuickStart.Spanish.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/files/QuickStart.Spanish.doc -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/files/QuickStart.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/files/QuickStart.doc -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/addinsDialog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/addinsDialog.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/advancedSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/advancedSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/assembliesTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/assembliesTab.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/assemblyReloadSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/assemblyReloadSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/bulletOff.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/bulletOff.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/bulletOn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/bulletOn.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/configEditor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/configEditor.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/console-mock.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/console-mock.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/generalSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/generalSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/generalTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/generalTab.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/gui-screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/gui-screenshot.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/gui-verify.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/gui-verify.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/internalTraceSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/internalTraceSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/langFilter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/langFilter.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/logo.gif -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/miniGui.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/miniGui.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/nunitTestAdapter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/nunitTestAdapter.png -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/projectEditorSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/projectEditorSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/runtimeSelectionSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/runtimeSelectionSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/testLoadSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/testLoadSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/testOutputSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/testOutputSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/testProperties.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/testProperties.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/testResultSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/testResultSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/textOutputSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/textOutputSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/treeDisplaySettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/treeDisplaySettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/visualStudioSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/visualStudioSettings.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/img/xmlView.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/img/xmlView.jpg -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/mainMenu.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/mainMenu.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/quickStart.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/quickStart.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/settingsDialog.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/settingsDialog.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/testProperties.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/testProperties.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/doc/vsSupport.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/doc/vsSupport.html -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pash-Project/Pash/44fee2991f2fc01faa0bc7116653f12734c51c49/Tools/NUnit-2.6.1/license.txt -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/Extensibility/Core/Minimal/Minimal.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionAttribute.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | 9 | namespace NUnit.Core.Extensions 10 | { 11 | /// 12 | /// SampleFixtureExtensionAttribute is used to identify a SampleFixtureExtension class 13 | /// 14 | [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] 15 | public sealed class SampleFixtureExtensionAttribute : Attribute 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtension.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtensionAttribute.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | 9 | namespace NUnit.Core.Extensions 10 | { 11 | /// 12 | /// SampleSuiteExtensionAttribute is used to identify a SampleSuiteExtension fixture 13 | /// 14 | [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] 15 | public sealed class SampleSuiteExtensionAttribute : Attribute 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/cpp/cpp-cli/failures/cpp-cli-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/cpp/cpp-cli/failures/cppsample.h: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | #pragma once 8 | 9 | using namespace System; 10 | using namespace NUnit::Framework; 11 | 12 | namespace NUnitSamples 13 | { 14 | [TestFixture] 15 | public ref class SimpleCPPSample 16 | { 17 | int fValue1; 18 | int fValue2; 19 | public: 20 | [SetUp] void Init(); 21 | 22 | [Test] void Add(); 23 | [Test] void DivideByZero(); 24 | [Test] void Equals(); 25 | [Test] [Ignore("ignored test")] void IgnoredTest(); 26 | [Test] [ExpectedException(InvalidOperationException::typeid)] void ExpectAnException(); 27 | }; 28 | } 29 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/cpp/cpp-cli/syntax/cpp-cli-syntax.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/cpp/managed/failures/cppsample.h: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | #pragma once 8 | 9 | using namespace System; 10 | using namespace NUnit::Framework; 11 | 12 | namespace NUnitSamples 13 | { 14 | [TestFixture] 15 | public __gc class SimpleCPPSample 16 | { 17 | int fValue1; 18 | int fValue2; 19 | public: 20 | [SetUp] void Init(); 21 | 22 | [Test] void Add(); 23 | [Test] void DivideByZero(); 24 | [Test] void Equals(); 25 | [Test] [Ignore("ignored test")] void IgnoredTest(); 26 | [Test] [ExpectedException(__typeof(InvalidOperationException))] void ExpectAnException(); 27 | }; 28 | } 29 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/csharp/failures/cs-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/csharp/money/cs-money.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/csharp/syntax/cs-syntax.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/jsharp/failures/jsharp-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/jsharp/jsharp.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{E6FDF86B-F3D1-11D4-8576-0002A516ECE8}") = "jsharp-failures", "failures\jsharp-failures.vjsproj", "{B55A6E53-57A9-4205-B396-C9983B3AF46A}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Debug.ActiveCfg = Debug|.NET 13 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Debug.Build.0 = Debug|.NET 14 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Release.ActiveCfg = Release|.NET 15 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/vb/failures/vb-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/vb/money/vb-money.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Tools/NUnit-2.6.1/samples/vb/syntax/vb-syntax.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /WindowsPowershellReferenceTests.nunit: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WindowsPowershellReferenceTests/ReferenceTestInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace ReferenceTests 7 | { 8 | static class ReferenceTestInfo 9 | { 10 | public const string SHELL_NAME = "Windows Powershell"; 11 | public const string SHELL_EXECUTABLE = "powershell"; 12 | public const bool IS_PASH = false; 13 | } 14 | } 15 | --------------------------------------------------------------------------------